Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

DetailPrototype

Namespace: UnityEngine

Description

Detail prototype used by the Terrain GameObject.

This can be grass, or a flower..

Variables

bendFactorBend factor of the detailPrototype.
dryColorColor when the DetailPrototypes are "dry".
healthyColorColor when the DetailPrototypes are "healthy".
maxHeightMaximum height of the grass billboards (if render mode is GrassBillboard).
maxWidthMaximum width of the grass billboards (if render mode is GrassBillboard).
minHeightMinimum height of the grass billboards (if render mode is GrassBillboard).
minWidthMinimum width of the grass billboards (if render mode is GrassBillboard).
noiseSpreadHow spread out is the noise for the DetailPrototype.
prototypeGameObject used by the DetailPrototype.
prototypeTextureTexture used by the DetailPrototype.
renderModeRender mode for the DetailPrototype.