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.
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
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.