Unity Engine documentationScript ReferenceUnityEngineRigidbodyConstraints2DFreezePositionYFreeze motion along the Y-axis.Read time 1 minuteLast updated 14 days agoDefinition Type: Field Namespace: UnityEngine Assembly: UnityEngine.Physics2DModule FreezePositionY = 2