Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[4.7] UMG Get position on widget

Hi everyone,

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!

Product Version: UE 4.7
more ▼

asked Jul 03 '15 at 04:06 AM in Blueprint Scripting

avatar image

117 12 9 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first


You can get the position of a widget by doing this : alt text

It will get you the offsets compared to the anchors : alt text

I hope it helps !

more ▼

answered Jul 03 '15 at 06:01 AM

avatar image

316 22 17 39

avatar image 5Kwatts Jul 06 '15 at 01:52 AM

Awesome. Exactly what I needed. Thank you very much.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You'll also have to deal with the screen size, scale and anchor offsets... (note that this only works with canvas slots)

alt text

more ▼

answered Apr 15 '16 at 08:12 PM

avatar image

26 1 2 2

avatar image BitteWenden Jun 17 '16 at 08:51 PM

Any way to do this with horizontal box slots?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question