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"

How do I make the Anchor offsets in UMG be a percent of canvas?

How do I make the Anchor offsets in UMG be a percent of canvas?

The new UMG UI stuff is very promising, but I can't get the UI elements to properly scale with the view screen. I can use the anchor layouts to squash UI elements based on view screen size, but they are at fixed offsets. I need them to scale as a percentage of the view screen so re-sizes work properly.

Is there a way to do this yet?

alt text alt text

Product Version: Not Selected
Tags:
ue4umgbefore.jpg (35.1 kB)
ue4umgafter.jpg (47.2 kB)
more ▼

asked Aug 19 '14 at 12:15 AM in Blueprint Scripting

avatar image

Erdrik
408 47 52 73

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

1 answer: sort voted first

Hi Erdrik, it's not easy to configure at the moment, but what you need to do to achieve this effect is to manually edit the anchors. They're Min X, Min Y, Max X, Max Y.

If you wanted to have something stretch via a percentage you'd adjust those values. The customization that you used to make it stretched sets the maxes to 1 and the min to 0. Those are the normalized anchor points. if you wanted something to always be 10% from the top/left and 10% from the right, bottom. Those numbers would be min (0.1), max (0.9). Then you'd zero out the offsets, which when stretching represents your margin from the calculated normalized anchor position.

It's complicated, it's one of those things that can be improved greatly with a better customization and more visual aides in the designer.

Cheers, Nick

more ▼

answered Aug 19 '14 at 12:23 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 37 151

(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