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"

Trying to scale a UI element by mouse wheel

I have a world map accessible via a GUI. I'm trying to make it so the map can scale with mouse wheel input, but I'm unsure where to start.

The world map exists in an overlay, which exists in a border (because I have sub-map elements that overlap the main map). The map can be panned on the X and Y, although I'm not thrilled with how it works, and am open to suggestions on that as well. I followed this tutorial to get the panning to work, but can't make the logic work in my head to get what amounts to GUI "zooming" to work.

Thanks in advance.

Product Version: UE 4.10
more ▼

asked Jan 31 '16 at 01:55 AM in Blueprint Scripting

avatar image

1 3 4

avatar image storshun Feb 01 '16 at 12:07 AM

So, to update this, I have a semi-workaround. I'm using a slider to change the scale of the UMG Border, and that makes its sub-contents in the Overlay smaller, but only what is initially visible. The problem now is; when I scale down the UMG Border, it's scaling only what is visible at launch, and not updating to show the entire image that should now be visible on screen. Even if I scale the content within the UI Border

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

1 answer: sort voted first

Put your map and other related stuff/widgets inside a Scalebox. Then inside Scalebox set the very top option Stretching>Stretch to "User Specified". Then in Graph add node "Set User Specified Scale", target it to your Scalebox and then you will have full access to its Scale using Float. You can create some Slider or/and bind that Float to Mouse Wheel. Personally i have a whole Menu which scale is controlled via such Slider in menu itself. I am sure its technically no problem to bind Mouse Whell to control such Slider then.

more ▼

answered Aug 23 '17 at 08:37 PM

avatar image

31 1 7 11

(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