Can anybody show me how to color a single quad in my grid?
i heard it could be done with Color32.
It should look like the picture below:
Can anybody show me how to color a single quad in my grid?
i heard it could be done with Color32.
It should look like the picture below:
If those vertices are shared, it’s not possible. All vertices must be unique.
–Eric
They’re unique.
Can you show me how to edit them?
Assign the appropriate colors to the Color32 array (each one matches a vertex, same as other attributes). Note that this requires a shader that uses vertex colors.
–Eric
I finally did it, but now i have problems with the Garbage Collection.
When i’m pressing a key the Mesh is colored Randomly and after that the GC is overflowing… but why?
Because your code has some kind of bug.
–Eric