Base class: Object
The mesh layer class provides a very efficient interface to display large amounts of vegetation, rocks, and other instanced objects on a terrain.
Mesh layers are created using the Terrain::AddMeshLayer method.
| Property | Type | Description |
|---|---|---|
| extra | Object | user-defined object |
| name | WString | user-defined name |
| AddVariation | Method | adds a new mesh layer variation |
| Clear | Method | makes each instance invisible |
| CountVariations | Method | returns the number of mesh layer variations |
| Fill | Method | makes each instance visible, respecting slope and height constraints |
| GetCollisionType | Method | returns the mesh layer collision type |
| GetInstanceMatrix | Method | returns the orientation of the specified instance |
| GetInstanceVariation | Method | returns the index of the variation the specified instance uses |
| GetInstanceVisible | Method | gets the visibility of the specified instance |
| GetInstancesInArea | Method | returns an array of all the instances within the specified area |
| GetPickMode | Method | returns the mesh layer pick mode |
| GetShadows | Method | returns the mesh layer shadow casting mode |
| SetAlignment | Method | sets the mesh layer alignment mode |
| SetCollider | Method | sets the mesh layer collider |
| SetCollisionType | Method | sets the mesh layer pick mode |
| SetSpacing | Method | sets the mesh layer instance spacing |
| SetHeightConstraints | Method | sets the mesh layer height constraints |
| SetInstanceVisible | Method | sets the visibility of the specified instance |
| SetLodDistance | Method | sets the mesh layer LOD distance |
| SetModel | Method | sets the mesh layer model |
| SetPickMode | Method | sets the mesh layer pick mode |
| SetSeed | Method | sets the mesh layer random seed |
| SetShadows | Method | sets the mesh layer shadow casting mode |
| SetSlopeConstraints | Method | sets the mesh layer slope constraints |
| SetViewDistance | Method | sets the mesh layer view distance |
| SetWeight | Method | sets the weighting of the specified variation |