Edit 2D Texture and apply to canvas
I have a world created from 3D tiles, and I want to display this onto a 2D map that can be brought up in a GUI panel. I have managed to create the GUI that has an image the correct size that I can show/hide with my desired button.
I have created a function that draws the 3D map (data contained in an array) onto a Texture2D, but there seems to be no way to put this onto the GUI canvas. I can only use Image or RawImage on the canvas, and I cannot convert the Texture2D to either of those. (I need to use the Texture2D as I am creating the image using the SetPixel() function).
How can I convert my 3D map into a 2D image that I can display on a GUI canvas? This image needs to be created on runtime after the world has been generated.
Your answer
![](https://koobas.hobune.stream/wayback/20220612120606im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
I want to create a game type Crash Bandicoot (I need help) 3 Answers
How can I use UI Image as a button? 0 Answers
Animated GUI button 0 Answers
how to make random maps? 0 Answers
GUI.BUTTON TEXTURED HOW TO 1 Answer