ドキュメント

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.