ドキュメント

Unity Engine

Unity Engine

usePrototypeMesh

Indicates whether this detail prototype uses the Mesh object from the GameObject specified by DetailPrototype.prototype.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.