[4.7] UMG Get position on widget
So what I'm doing is dynamically creating widgets for my party members. Is there a way to get an existing(parent) widget variable and find it's current position within the viewport so I can add other widgets(child) based off of the parent's widget?
If I have to, I can do it based off of the current party member's index and do it that way, but I would think the above would be easier to work with. But I could be wrong in that manner and if both of them exist, then the performance of one vs the other.
Thanks for your help!
asked Jul 03 '15 at 04:06 AM in Blueprint Scripting
You can get the position of a widget by doing this :
It will get you the offsets compared to the anchors :
I hope it helps !
answered Jul 03 '15 at 06:01 AM
You'll also have to deal with the screen size, scale and anchor offsets... (note that this only works with canvas slots)
answered Apr 15 '16 at 08:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here