PolygonChunkDisplay
A class in Root.Township, Alta.Caves.Displays.
Cave chunk display that builds a height mesh from one Y slice of its layer and traces solid regions into EdgeCollider2D outlines. Probably an older 2D cave display.
- Listed in World generation
- Inherits or implements
MapChunkDisplay - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
PolygonChunkDisplay() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
7 private and internal fields
Properties
1 private and internal property
Methods
| Member | What it is |
|---|---|
float GetDepth(MapChunkLayer layer, int x, int z) | Height of a cell: its layer value at yIndex times scale. |
override void Initialize() | Gets the filter, renderer and parent chunk and creates the mesh. |
override IEnumerator Render() (iterator) | Traces edge colliders around cells at or above upperLimit, then builds triangles for cells between the limits. |