Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


height

The height of the capsule measured in the object's local space.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public float height { get; set; }

Remarks

The capsule's height will be scaled by the transform's scale. Note: The height is the actual height including the half-spheres at each end.