TreePrototype
Simple class that contains a pointer to a tree prototype.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public sealed class TreePrototype
Remarks
This class is used by the TerrainData gameObject.
Properties
Property | Description |
|---|---|
| bendFactor | Bend factor of the tree prototype. |
| navMeshLod | The LOD index of a Tree LODGroup that Unity uses to generate a NavMesh. It uses this value only for Trees with a LODGroup, and ignores this value for regular Trees. |
| prefab | Retrieves the actual GameObject used by the tree. |