ドキュメント

Unity Engine

Unity Engine

size

Describes the dimensions of the shape.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public Vector3 size { get; set; }

Remarks

Used only for the primitive shapes: Sphere, Capsule, Box.
• Sphere: size is the dimensions of a box enclosing the sphere (i.e., x, y, and z are all equal to the diameter).
• Box: size is the dimensions of the box.
• Capsule: size is the dimensions of a box enclosing the capsule (i.e., x and z are equal to the diameter of the capsule and y is the height).