- Home /
The best way to make a world map that can be used with UI.
Hello,
I'm using new UI. I have a world based on tiles (for example like Minecraft seen from above). I want to create and update (all via script) an image of the map of the world. On this map, each tile should be represented by a square of some color and of some fixed dimensions (e.g. 10x10px).
I want to be able to put this map into a ScrollRect with some fancy scrollbars. What's the most efficient way to do this?
I know there is something like Texture2D - SetPixels, but is it the best (or maybe the only) way? If so, how do I proceed?
Please, help.
Cheers!
I'm not too familiar with this stuff, but I think you could use a RenderTexture for the map. You could have the RenderTexture display as a camera with a GUI background.
I think that might be too complicated, after all, all I wanna do is generate an image (that can be somehow put into UI). But thanks for the input.
Your answer
Follow this Question
Related Questions
Assigning UV Map to model at runtime 0 Answers
How to make a 3D interactive map 0 Answers
Stopping overlapping textures from flickering? 7 Answers