Vertex colors
You can use vertex colors to store data in the form of red, green, and blue (RGB) values for each vertex in generators of your model that create geometry, like Branch generators.
Read time 2 minutesLast updated a day ago
Stored data can then be read back in a shader, or used for things like variation or masking, by sampling the colors stored per vertex on generators like Branch generators that create geometry.

Compute vertex colors in your model
To make your model compute vertex colors:
-
In the Generation Editor, select the Tree generator.
-
In the Properties bar, in the Vertex Color section, select Compute.
Inspect your model's vertex colors
To inspect the vertex colors of your model:
-
In the Tree window toolbar, in the View section, select Render > Vertex Colors.
-
Select the color you want to inspect.
For more information about render modes in general, refer to the Tree window toolbar reference page.
Edit your model's vertex colors
-
You can apply vertex colors procedually to your model. For this, each generator has a set of Vertex Color properties that either set the color directly or modify a color they inherit from their parent. This allows you to smoothly transition colors across nodes and generators.
-
You can also paint vertex colors manually in Freehand mode.
Mesh assets and vertex colors
When you import an .fbx file, any mesh assets in the file retain their vertex colors.
Inspect vertex colors for a mesh asset
To inspect vertex colors for a mesh asset:
-
In the Meshes window, select the mesh asset in the list
-
Right-click on the previewed mesh asset and then select Show Vertex Colors.
Additional resources
- Paint textures with procedural colors with the Cutout Editor.
- Paint Vertex Colors in Freehand Mode.
- Export vertex colors with the Games Export Options.