文档

Unity Engine

Unity Engine

offsetDistance

Vertices are offset by this distance when compositing multiple physic shapes. Any vertices between shapes within this distance are combined.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public float offsetDistance { get; set; }

Remarks

Do not set the distance offset to higher than 1% of the Sprite's length, as this may result in a loss in detail when too many vertices are combined together.