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

Foldout can be inside Tab

Close the foldout with [CloseFoldout] attribute.

using MVsToolkit.Dev;



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

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

[CloseFoldout]
public int DebugValue

Require namespace MVsToolkit.Dev

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