- Home /
Question by
Seitzy · May 24, 2020 at 08:35 PM ·
meshmeshesmesh renderervertexcolor
Changing colour in a mesh?
I'd like the square inside the grid to change colour when it is clicked on. Is it possible to make a certain part of a mesh a different colour from the rest of the mesh?
alt text
The entire grid is currently just white, I would like it to look like this when clicked:
meshframe.png
(16.4 kB)
untitled-1.png
(6.0 kB)
Comment
Are you sure that you cannot use multiple quads? That would be easier. Also, how familiar are you with meshes, vertices, and texture UVs?
Yes, I'll do that now and I'm barely familiar with meshes. I just started learning about them yesterday. I tried doing this same thing with sprites that changed when clicking on them but each tile was a new gameobject so it got incredibly laggy depending on the size.