Documentation

Unity Engine

Download Unity

Unity Engine

offsetDistance

Vertices are offset by this distance when compositing multiple physic shapes. Any vertices between shapes within this distance are combined.
Read time 1 minuteLast updated 2 months ago

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.