x

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"

Finding out Size of Fill area in umg

I was wondering if there is in anyway possible to get the current Desired Size for an area that doesn't have Size set (aka it's Fill 1.0 in a Vertical Slot). I have my own Scrollbar widget put inside an Vertical Area with a Title on top of that. A previous parent size is set to 900 so What I want is to get that Scrollbars size in Vector2D which is now set to Fill.

Is there anyone that knows how to get that current Size? Get Desired Size just returns 0 so that is something I can't use.

Any help would be greatly of use.

Regards

Product Version: Not Selected
Tags:
more ▼

asked Jun 10 '15 at 03:19 AM in Blueprint Scripting

avatar image

wettrix
101 12 19 25

avatar image rohoon Jun 16 '15 at 02:13 AM

A massive +1 on this. Currently blocked because of it.

avatar image wettrix Jul 16 '15 at 12:45 AM

Would really like to bump this to see if there is anyone that knows an answer to this?

Still looking for a solution.

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

2 answers: sort voted first

It took me some time but I kind of figured it out.

Basially I have my own Scrollbar widget that I made and I only want that widgets fill size. What you can do is like this. In your own scrollbar widget in the the function get the geology and from that you don't get the desired size but you can get "Get Local Size". This is something that you can't get freely atm with a function so you need it from an Event Tick, Touch Started or like a Mouse Enter. I made an easy check that just gets it at the first Tick and then don't do it anymore.

Hopefully Epic can put out a function for this in the future or at least an Output node in the Event Construct. I've also tried to find Geology in the code but I couldn't find where it gets created.

more ▼

answered Jul 21 '15 at 12:56 AM

avatar image

wettrix
101 12 19 25

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

To summaries Wettrix's answer to their own question: Yes it is easily achievable with two variables:

Get the widget's geometry on the first tick: alt text

Then get the local size from the geometry to get the widget's size: alt text

This works better than getting the widget's slot as local size appears to work regardless of the container the widget is within. I am guessing due to the geometry being a struct you shouldn't need to refresh it if the widget re-sizes as the local size should automatically update. I haven't tested that though.

tick.jpg (31.7 kB)
sizes.jpg (27.1 kB)
more ▼

answered Jan 13 '16 at 09:22 PM

avatar image

MugenCity
182 12 18 104

(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