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"

scale UMG at runtime

Hi,

is it possible to scale UMG widgets at runtime?

thanks in advance,

Product Version: UE 4.18
Tags:
more ▼

asked Feb 06 '18 at 02:22 PM in Blueprint Scripting

avatar image

quintendc
170 39 53 80

avatar image Sardorian Feb 06 '18 at 02:23 PM

Yes you can scale them at runtime

avatar image quintendc Feb 06 '18 at 02:26 PM

any suggestion how?

avatar image Sardorian Feb 06 '18 at 02:26 PM

Are you planning to scale them to fit display resolution, or scale for animation?

avatar image Sardorian Feb 06 '18 at 02:40 PM

This setup scales widgets according to dpi curve.

alt text

wop.png (52.9 kB)
avatar image Sardorian Feb 06 '18 at 02:41 PM

Here by using umg timeline animation you can change scale color transform etc during runtime alt text

asd.png (76.9 kB)
avatar image quintendc Feb 06 '18 at 02:57 PM

Users need to have the ability to scale the UI based on how far they sit from there screen.

avatar image etiles Jun 15 '18 at 03:32 PM

It would be great to have a SetViewportScale node. Is there a way to achieve this?

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

So basically you just get desired widget from you umg hud reference and can set scale using following nodes

alt text

asd.png (66.6 kB)
more ▼

answered Feb 06 '18 at 03:08 PM

avatar image

Sardorian
407 8 4 8

avatar image quintendc Feb 07 '18 at 01:13 AM

the problem with using SetRenderScale is that my widget goes beyond my screen borders, actually what I want is that text en buttons becomes bigger and stays in the viewport. im calling the SetRenderScale in the widget itself (what is shop exactly in your widget?)

avatar image Sardorian Feb 07 '18 at 01:17 AM

Shop is button in my widget. Im not sure but you can try anchoring.

avatar image Sardorian Feb 07 '18 at 01:34 AM

Seems like you will have to move your widget whenever scaling so that it wont go beyond :/

avatar image quintendc Feb 08 '18 at 12:25 AM

Hi,

i tried different anchors but still gives the same issue

(comments are locked)
10|2000 characters needed characters left

May be you can clipping in widget. In widget properties panel. It should set bound instead of inherit.

more ▼

answered Dec 15 '18 at 04:36 AM

avatar image

Jegatheesh T
6 2

(comments are locked)
10|2000 characters needed characters left
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