The '''BoxGizmo''' component is used to make the handles and visual for editing a box mesh or collider, and also handles the interaction with the handles.
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetSlot|Slot|
|TargetSlot|Slot| The slot of the box to edit.
|LocalSpace|Slot|
|BoxCenterSpace|{{RootFieldType|RootSpace}}|TypeAdv1=true| The coordinate space to transform by when making the result of <code>BoxCenter</code>
|UseParentSpace|Bool|
|BoxSizeSpace|{{RootFieldType|RootSpace}}|TypeAdv2=true| The coordinate space to transform by when making the result of <code>BoxSize</code>
|OverrideRootSpace|RootSpace|
|BoxSize|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Float3|Float3]]>}}|TypeAdv3=true| The field to edit for the box size.
|LocalSpace|Slot|
|BoxCenter|{{RootFieldType|RelayRef`1|[[Type:IField`1|IField`1]]<[[Type:Float3|Float3]]>}}|TypeAdv4=true| The field to drive for the box center.
|UseParentSpace|Bool|
|LockOffset|Bool| Whether to lock the offset of the box so it's center stays the same.
|OverrideRootSpace|RootSpace|
|_vertices|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:Float3|Float3]]>}}|TypeAdv6=true| A list of fields to drive for the vertex positions of the cube gizmo visual.
|BoxSize|IField`1|TypeString3=IField<float3>|
|_edges|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:Float3|Float3]]>}}|TypeAdv7=true| A list of fields to drive for the edge positions of the cube gizmo visual.
|BoxCenter|IField`1|TypeString4=IField<float3>|
|_faces|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:Float3|Float3]]>}}|TypeAdv8=true| A list of fields to drive for the face positions of the cube gizmo visual.
|LockOffset|Bool|
|_sphereColliderRadii|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:Float|Float]]>}}|TypeAdv9=true| A list of fields to drive for the sphere rotations of the cube gizmo visual.