Need help with Unity UI

So I am making a 2D game, and I made a map interface using the ui. You can click locations (buttons) to make your party travel to locations which uses food ect. My only problem is I want to make the map have a click and drag feature, as well as a scroll to zoom. How would I go about making the UI (which seems to be static) scale with zoom or slide around? Or should I rework my game map to not be UI based? Thanks so much.

The UI does not need to be static. You could give the whole map a parent RectTransform, and move and scale that parent to shift the map. If you only want to show a portion of the map at a time, you can use the RectMask2D component on the parent, to mask the children to within its bounds.

1 Like

Wow, thank you! I didn’t even think about that

1 Like