usePrototypeMesh
Indicates whether this detail prototype uses the Mesh object from the GameObject specified by DetailPrototype.prototype.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public bool usePrototypeMesh { get; set; }
Remarks
If DetailPrototype.renderMode is DetailRenderMode.Grass, you can set this value to either true or false. However, if DetailPrototype.renderMode is DetailRenderMode.GrassBillboard, you must set this value to false. And if DetailPrototype.renderMode is DetailRenderMode.VertexLit, you must set this value to true. Otherwise, this detail prototype won't render.