GrassEditorHolder
A class in Root.Township, Alta.Environmental.Vegetation.
Editor tool for shaping one grass blade as a spine of points with a width at each.
- Listed in World, chunks and saving
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
GrassEditorHolder() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
Properties
Methods
| Member | What it is |
|---|---|
void CreateBlade(int numberOfVertices, float width, float height) | Adds a straight spine of evenly spaced points up to a height, all with the same width. |
void LoadStructure(GrassBladeMesh newMesh) | Rebuilds the spine and widths from a saved GrassBladeMesh's vertex pairs. |
void PushVertices(int numberOfVertices) | Grows or shrinks the spine to a point count, extending upward from the last point. |
void ReceiveProceduralBlade(float frontBend, float sideBend, float height, float width, float widthTop) | Replaces the spine with a five-point bent blade from front and side bend, height and widths. |