文档

Unity Engine

Unity Engine

holeEdgePadding

Controls how far away detail objects are from the edge of the hole area.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float holeEdgePadding { get; set; }

Remarks

Specify a non-negative value, which is a scale of the detail mesh's width in world space. (DetailRenderMode.GrassBillboard details have a width of 1.) Unity multiplies this value by the detail mesh's width, and uses the result to determine the radius of a circular area around detail objects, which it then applies for testing against holes.