Component:BoxGizmo
From Resonite Wiki
More actions
(Redirected from BoxGizmo (Component))
Component image 
Box Gizmo component as seen in the Scene Inspector

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.
Fields
| Name | Type | Description |
|---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
TargetSlot
|
Slot | The slot of the box to edit. |
BoxCenterSpace
|
direct RootSpace | The coordinate space to transform by when making the result of BoxCenter
|
BoxSizeSpace
|
direct RootSpace | The coordinate space to transform by when making the result of BoxSize
|
BoxSize
|
direct RelayRef`1<IField`1<Float3>> | The field to edit for the box size. |
BoxCenter
|
direct RelayRef`1<IField`1<Float3>> | The field to drive for the box center. |
LockOffset
|
Bool | Whether to lock the offset of the box so it's center stays the same. |
_vertices
|
list of FieldDrive`1<Float3> | A list of fields to drive for the vertex positions of the cube gizmo visual. |
_edges
|
list of FieldDrive`1<Float3> | A list of fields to drive for the edge positions of the cube gizmo visual. |
_faces
|
list of FieldDrive`1<Float3> | A list of fields to drive for the face positions of the cube gizmo visual. |
_sphereColliderRadii
|
list of FieldDrive`1<Float> | A list of fields to drive for the sphere rotations of the cube gizmo visual. |
_material
|
OverlayFresnelMaterial | The material being used for the gizmo visual. |
_handleSphere
|
IcoSphereMesh | The mesh being used for the handles of the gizmo like corners or faces. |
_visualRoot
|
Slot | The slot of the visual root. |
_visualPosition
|
field drive of Float3 | The field to drive for the visual position. |
_visualRotation
|
field drive of FloatQ | The field to drive for the visual rotation. |
_visualScale
|
field drive of Float3 | The field to drive for the visual scale. |
_tubeBox
|
reference drive of TubeBoxMesh | The tube box mesh being used for the gizmo visual. |
Usage
This article or section is a stub. You can help the Resonite wiki by expanding it.
Examples
Used to edit box colliders or box meshes. Created by the dev tool when switching gizmo modes when having a box selected.