Hi,
Is there any simple way how to set custom mouse cursor with no lags ?
I found only this
I can’t believe that there is still not simple way how to do it.
Thanks…
Hi,
Is there any simple way how to set custom mouse cursor with no lags ?
I found only this
I can’t believe that there is still not simple way how to do it.
Thanks…
What do you think most simple solution would be? Simply take mouse coordinates from viewport and apply it to HUD or UMG cursor on every tick. You can take this function from player controller:
And for example use it in DrawHUD() and when it returns true draw mouse cursor on position that X and Y argument gives.
To use that function you need to create local variables for X and Y and placed them as arguments, function will change those variables. if you see & in argument it means reference, any changes in that function to variable that will be inputted to argument as reference will be applied to that variable, not to state of variable during of input which normally is a case. Fun and useful fact: if you use those reference arguments in blueprint function it will be displayed as output not input, it’s simply the way to return more then just one variable from function
I am not asking about C++ syntax or how I can get mouse coordinates in UE. I need to advice how I can avoid cursor lag when I drawing texture in HUD as a custom mouse cursor.
We definetly need hardware cursor too.
The lag cause the game feels like running on low fps. We need it too.