Skip to main content

GrassBladeMesh

A class in Root.Township, Alta.Environmental.Vegetation.

A ScriptableObject holding one grass blade's mesh data and base colour, used by the grass system.

Constructors​

MemberWhat it is
GrassBladeMesh()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

4 private and internal fields
MemberWhat it is
private Color baseColorBase colour of the blade. Backing field for Color.
private bool isAvailableBacking field for IsAvailable.
private int[] trianglesTriangle indices of the blade mesh. Backing field for Triangles.
private Vector3[] verticesVertices of the blade mesh. Backing field for Vertices.

Properties​

MemberWhat it is
Color Color { get; }Base colour of the blade.
bool IsAvailable { get; set; }Serialized availability flag for this blade mesh.
float MaxY { get; }Height of the tallest vertex (at least 0).
int[] Triangles { get; set; }Triangle indices of the blade mesh.
Vector3[] Vertices { get; set; }Vertex positions of the blade mesh.

Used in​

Members of other types that take, return or hold a GrassBladeMesh: