Put a PNG in game content directory

Steps

1, Put a PNG in game content directory, e.g. E:\MyProj\Content\Asset\Cursor\mouse.png

2, Project Settings -> Engine -> User Interface -> Hardware Cursors -> add element and set Default, set Cursor Path as Asset/Cursor/mouse.

3, If the click response position of .PNG cursor isn’t the top-left corner, you can modify the Hot Spot, e.g. you can set Hot Spot as (0.5, 0.5) if the click response position is the center of .PNG.

Change Hardware Cursor at run-time

Reference
Is there a way to change the mouse cursor at runtime with the input mode set to UI only?
https://answers.unrealengine.com/questions/666770/is-there-a-way-to-change-the-mouse-cursor-at-runti.html


穷人家的孩子,喜欢一个人都害怕自己配不上。