Component:DevTool: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
template things, add some info
Line 3: Line 3:
|Name=Dev Tool
|Name=Dev Tool
}}
}}
{{stub}}
See [[Dev Tool]].


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|_equipLink|{{RootFieldType|LinkTarget`1|[[Type:ITool|ITool]]}}|TypeAdv0=true|
|_equipLink|{{RootFieldType|LinkTarget`1|[[Type:ITool|ITool]]}}|TypeAdv0=true|
|TipReference|Slot|
|TipReference|Slot| The slot that the laser should come out of.
|BlockGripEquip|Bool|
|BlockGripEquip|Bool| Whether to allow double gripping (legacy) to equip the tool
|BlockRemoteEquip|Bool|
|BlockRemoteEquip|Bool| Whether to allow clicking on a tool and clicking the equip button to equip the tool.
|EquipName|String|
|EquipName|String| Usually "Dev Tool"
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true|
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true|
|_gripPosesGenerated|Bool|
|_gripPosesGenerated|Bool| Whether the tool has it's left and right grip pose slots made.
|SelectionMode|'''[[#Selection|Selection]]'''|TypeAdv7=true|
|SelectionMode|'''[[#Selection|Selection]]'''|TypeAdv7=true| See [[#Selection|Selection section]]
|InteractionMode|'''[[#Interaction|Interaction]]'''|TypeAdv8=true|
|InteractionMode|'''[[#Interaction|Interaction]]'''|TypeAdv8=true|  
|_selectedAnchor|'''[[Component:PointAnchor|PointAnchor]]'''|TypeAdv9=true|
|_selectedAnchor|'''[[Component:PointAnchor|PointAnchor]]'''|TypeAdv9=true|  
|_selectedAnchorHighlight|Slot|
|_selectedAnchorHighlight|Slot|  
|_material|{{RootFieldType|DriveRef`1|[[OverlayFresnelMaterial|OverlayFresnelMaterial]]}}|TypeAdv11=true|
|_material|{{RootFieldType|DriveRef`1|[[OverlayFresnelMaterial|OverlayFresnelMaterial]]}}|TypeAdv11=true|
|_currentGizmo|Slot|
|_currentGizmo|Slot| The gizmo that the dev tool is currently targeting for gizmo options.
|_previousGizmo|Slot|
|_previousGizmo|Slot| The previous gizmo that the dev tool targeted for gizmo options.
}}
}}
== Selection ==
{{Template:DevTool_Selection}}


== Behavior ==
== Behavior ==

Revision as of 21:37, 16 October 2024

Component image 
Dev Tool component as seen in the Scene Inspector

See Dev Tool.

Usage

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.
_equipLink direct LinkTarget`1<ITool>
TipReference Slot The slot that the laser should come out of.
BlockGripEquip Bool Whether to allow double gripping (legacy) to equip the tool
BlockRemoteEquip Bool Whether to allow clicking on a tool and clicking the equip button to equip the tool.
EquipName String Usually "Dev Tool"
_overrideActiveTool InteractionHandler
_gripPosesGenerated Bool Whether the tool has it's left and right grip pose slots made.
SelectionMode Selection See Selection section
InteractionMode Interaction
_selectedAnchor PointAnchor
_selectedAnchorHighlight Slot
_material direct DriveRef`1<OverlayFresnelMaterial>
_currentGizmo Slot The gizmo that the dev tool is currently targeting for gizmo options.
_previousGizmo Slot The previous gizmo that the dev tool targeted for gizmo options.

Selection

  • Selection: Sets the selection mode for the tool (select by using the secondary action):
    • Single: Select single object. Selecting an unselected object deselects any other selected object. Selecting a selected object unselects that object.
    • Multi: Select multiple objects. Selecting an unselected object adds that object to the selected objects. Selecting a selected object unselects that object.

Behavior

Examples

See Also