Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


distance

The distance measured from the Plane to the origin, along the Plane's normal.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public float distance { readonly get; set; }

Remarks

Note, this means a positive value for distance results in the Plane facing towards the origin. A negative distance value results in the Plane facing away from the origin.
Additional Resources: Plane.normal.