Announcement

Collapse
No announcement yet.

Create custom Mouse cursor using UMG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Create custom Mouse cursor using UMG

    Hello, I'm trying to create my custom mouse cursor by using UMG. First, I create my widget blueprint whichcalled MyCustomCursor like this:

    Click image for larger version

Name:	mycustomcurso.PNG
Views:	1
Size:	322.2 KB
ID:	1158749

    In MycustomCursor's EventGraph I set slot's position every tick:

    Click image for larger version

Name:	mycustomcursor_02.PNG
Views:	1
Size:	531.1 KB
ID:	1158750

    Then I create my cursor in EventBeginPlay of TopDownController blueprint:

    Click image for larger version

Name:	topdownblueprints.PNG
Views:	1
Size:	513.9 KB
ID:	1158751

    But my cursor's position doesn't seem correct @@

    Click image for larger version

Name:	custom_cursor_record.png
Views:	1
Size:	685.7 KB
ID:	1158752

    #2
    This not work like that, check in the 4.9 you have a class for that and in the project settings you can set the cursors.

    Project Settings -> User Interface -> Cursors

    Anyway you see that because is using the center of the canvas and no the center of the image...
    Last edited by Hevedy; 08-03-2015, 06:35 AM.
    Hevedy - Instance Tools: https://hevedy.itch.io/hevedyinstances
    Hevedy - Image Tools: https://hevedy.itch.io/imagetools

    Comment


      #3
      Hi Hevedy, thank you very much. Just add MyCustomCursor blueprint in Project Settings -> User Interface -> Cursors and it works fine in the version 4.8, no need any nodes

      Comment

      Working...
      X