Attributes

Table of Content

Table of Content

Table of Content

Foldout

Groups fields under a collapsible foldout section in the Inspector

Every variable under the attribute will be inside the foldout

Foldouts cannot be inside an other one. It will be place under it

Close the foldout with [CloseFoldout] attribute.

[Foldout("Movement")]
public int MoveSpeed;
public int JumpForce;
public int DashForce;

[Foldout("References")]
public Rigidbody Rb;
public Collider Collid;

[CloseFoldout]
public int DebugValue

Create a free website with Framer, the website builder loved by startups, designers and agencies.