기술 자료

Unity Engine

Unity Engine

usePrototypeMesh

Indicates whether this detail prototype uses the Mesh object from the GameObject specified by DetailPrototype.prototype.
읽는 시간 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.