Announcement

Collapse
No announcement yet.

How can I set the position of a Widget element in UMG through the graph?

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

    How can I set the position of a Widget element in UMG through the graph?

    I have a reticle that I want to move around the screen wherever possible, I have a system that reports the screen position of a trace back to the hud, and I want to set the reticles location to be at that screen position.

    However, I can't seem to create a binding for 'Position' in UMG. Is there a particular reason for this?

    #2
    You will want it to be in a Canvas panel,
    then the widget can get its slot, its slot is where all its position data goes for placing it within the Canvas. you do this in the event graph of the UMG widget.
    once you get the slot, you need to cast it to the right type of slot, so if its in a canvus then cast it to a canvas planel slot,
    after that you can drag pins away and set position, zorder, anchors etc


    Hope that helps.
    JcInventory, a Jigsaw Grid based Inventory designed in UMG and blueprint

    Comment


      #3
      Sweet, Thanks!

      Comment


        #4
        Originally posted by Staggerlee View Post
        You will want it to be in a Canvas panel,
        then the widget can get its slot, its slot is where all its position data goes for placing it within the Canvas. you do this in the event graph of the UMG widget.
        once you get the slot, you need to cast it to the right type of slot, so if its in a canvas then cast it to a canvas panel slot,
        after that you can drag pins away and set position, zorder, anchors etc


        Hope that helps.
        After 3 years It worked for me. I just wanted to thank you.

        Comment

        Working...
        X