Method 1: Draw with draw.
The blueprint for inheriting the HUD draws a custom pattern with draw material,draw texture and other screen-drawing methods that are suitable for drawing a simple mouse.
(If you don't need an offset, ignore the float-50 in the blueprint)
(Attached: node show Mouse cursor is true when the system mouse pointer is displayed during gameplay and allows the pointer to move outside of the game window.) )
There are not many strange problems with this method, but the disadvantage is that it will be blocked by UMG.
Method Two: Draw one in the UMG.
Take the anchor position to the upper left corner, and note the 0 component X and Y positions.
If you need to do a crosshair, you need to set the value of the alignment in the center of the component for the mouse position point.
Blueprint Reference.
If you use MousePosition, you also need to recalculate the relationship between the screen and the anchor position.
Bo Master Meng Xin 0w0! If there is any mistake, please correct me.
Use a custom mouse inside the Ue4