How to dynamically change mouse cursor?
How to change mouse cursor in game? Let's say I want to change my cursor to crosshair when hovering over an enemy, to door icon when hovering over a door, etc... I can't find any info about that besides pre-setting the cursor in project settings.
1 Right Click in the Content Browser, select Blueprint Class and create a UserWidget.
2 Go to Edit>Project Settings
3 Go to User Interface and set your UserWidget as Default Cursor (I had called mine "BP_Cursor")
4 Open your UserWidget Blueprint and add a custom image.
5 Go to Graph Editing and manage your interactions from there. As an example, below I'm ticking the player pawn waiting for changes in the "Cursor State" Integer variable and changing the image's colour in response to that.
answered Nov 06 '16 at 12:47 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here