# usePrototypeMesh

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

## Definition

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

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

### Remarks

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