# usePrototypeMesh

> Indicates whether this detail prototype uses the Mesh object from the GameObject specified by DetailPrototype.prototype.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public bool usePrototypeMesh { get; set; }
```

### Remarks

If [DetailPrototype.renderMode](/engine/6000.0/script-reference/unityengine/detailprototype/rendermode.md) is [DetailRenderMode.Grass](/engine/6000.0/script-reference/unityengine/detailrendermode/grass.md), you can set this value to either true or false. However, if [DetailPrototype.renderMode](/engine/6000.0/script-reference/unityengine/detailprototype/rendermode.md) is [DetailRenderMode.GrassBillboard](/engine/6000.0/script-reference/unityengine/detailrendermode/grassbillboard.md), you must set this value to false. And if [DetailPrototype.renderMode](/engine/6000.0/script-reference/unityengine/detailprototype/rendermode.md) is [DetailRenderMode.VertexLit](/engine/6000.0/script-reference/unityengine/detailrendermode/vertexlit.md), you must set this value to true. Otherwise, this detail prototype won't render.
