Component:DevTool: Difference between revisions

From Resonite Wiki
template things, add some info
template
Line 7: Line 7:
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|_equipLink|{{RootFieldType|LinkTarget`1|[[Type:ITool|ITool]]}}|TypeAdv0=true|
|_equipLink|{{RootFieldType|LinkTarget`1|[[Type:ITool|ITool]]}}|TypeAdv0=true| {{Template:ITool _equipLink}}
|TipReference|Slot| The slot that the laser should come out of.
|TipReference|Slot| {{Template:ITool TipReference}}
|BlockGripEquip|Bool| Whether to allow double gripping (legacy) to equip the tool
|BlockGripEquip|Bool| {{Template:ITool BlockGripEquip}}
|BlockRemoteEquip|Bool| Whether to allow clicking on a tool and clicking the equip button to equip the tool.
|BlockRemoteEquip|Bool| {{Template:ITool BlockRemoteEquip}}
|EquipName|String| Usually "Dev Tool"
|EquipName|String| {{Template:ITool EquipName}}
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true|
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true| {{Template:ITool _overrideActiveTool}}
|_gripPosesGenerated|Bool| Whether the tool has it's left and right grip pose slots made.
|_gripPosesGenerated|Bool| {{Template:ITool _gripPosesGenerated}}
|SelectionMode|'''[[#Selection|Selection]]'''|TypeAdv7=true| See [[#Selection|Selection section]]
|SelectionMode|'''[[#Selection|Selection]]'''|TypeAdv7=true| See [[#Selection|Selection section]]
|InteractionMode|'''[[#Interaction|Interaction]]'''|TypeAdv8=true|  
|InteractionMode|'''[[#Interaction|Interaction]]'''|TypeAdv8=true|  

Revision as of 20:01, 19 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> This is Internal, and is used by the engine to retrieve the component this field is a part of. It cannot be assigned to.
TipReference Slot The slot to use as the tool's tip, instead of the component's slot.
BlockGripEquip Bool Whether to prevent legacy double grip equipping from equipping this tooltip.
BlockRemoteEquip Bool Whether to prevent equipping by clicking via laser
EquipName String The name of the tool in the context menu when equipping via context menu.
_overrideActiveTool InteractionHandler The interaction handler to use instead of this tool as an interaction handler.
_gripPosesGenerated Bool Whether the Grip Pose Reference components and slots have been generated for this tool.
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