Component:DevTool: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
Automated: update Fields, SyncDelegates
Line 14: Line 14:
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true| {{Template:ITool _overrideActiveTool}}
|_overrideActiveTool|'''[[Component:InteractionHandler|InteractionHandler]]'''|TypeAdv5=true| {{Template:ITool _overrideActiveTool}}
|_gripPosesGenerated|Bool| {{Template:ITool _gripPosesGenerated}}
|_gripPosesGenerated|Bool| {{Template:ITool _gripPosesGenerated}}
|SelectionMode|'''[[#Selection|Selection]]'''|TypeAdv7=true| See [[#Selection|Selection section]].
|SelectionMode|'''[[#Selection|DevTool.Selection]]'''|TypeAdv7=true| See [[#Selection|Selection section]].
|InteractionMode|'''[[#Interaction|Interaction]]'''|TypeAdv8=true|See [[#Interaction|Interaction section]].
|InteractionMode|'''[[#Interaction|DevTool.Interaction]]'''|TypeAdv8=true|See [[#Interaction|Interaction section]].
|_selectedAnchor|'''[[Component:PointAnchor|PointAnchor]]'''|TypeAdv9=true| The point anchor which is part of a gizmo this tool is moving currently.
|_selectedAnchor|'''[[Component:PointAnchor|PointAnchor]]'''|TypeAdv9=true| The point anchor which is part of a gizmo this tool is moving currently.
|_selectedAnchorHighlight|Slot| The slot being used to indicate what gizmo is currently being moved. Is an icosphere.
|_selectedAnchorHighlight|Slot| The slot being used to indicate what gizmo is currently being moved. Is an icosphere.
Line 25: Line 25:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|ToggleDevMode(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|ToggleDevMode[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|DeselectAll(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|DeselectAll[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OpenCreate(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OpenCreate[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OpenInspector(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OpenInspector[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OpenGizmoOptions(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OpenGizmoOptions[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|SelectParent()|[[Type:Action|Action]] -> [[Type:Void|Void]]| Switches the gizmo to the parent Slot, and deletes the old gizmo.
|SelectParent[[Type:Action|Action]]|[[Type:Action|Action]]|false| Switches the gizmo to the parent Slot, and deletes the old gizmo.
|ToggleSpace()|[[Type:Action|Action]] -> [[Type:Void|Void]]| toggles the gizmo orientation between global and local.
|ToggleSpace[[Type:Action|Action]]|[[Type:Action|Action]]|false| toggles the gizmo orientation between global and local.
|SetTranslation()|[[Type:Action|Action]] -> [[Type:Void|Void]]| Sets the currently targeted gizmo to Translation
|SetTranslation[[Type:Action|Action]]|[[Type:Action|Action]]|false| Sets the currently targeted gizmo to Translation
|SetRotation()|[[Type:Action|Action]] -> [[Type:Void|Void]]| Sets the currently targeted gizmo to rotation.
|SetRotation[[Type:Action|Action]]|[[Type:Action|Action]]|false| Sets the currently targeted gizmo to rotation.
|SetScale()|[[Type:Action|Action]] -> [[Type:Void|Void]]| Sets the currently targeted gizmo to scaling.
|SetScale[[Type:Action|Action]]|[[Type:Action|Action]]|false| Sets the currently targeted gizmo to scaling.
|OnOpenParent(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnOpenParent[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|SetTranslation(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Sets the currently targeted gizmo to Translation
|SetTranslation[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Sets the currently targeted gizmo to Translation
|SetRotation(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Sets the currently targeted gizmo to rotation.
|SetRotation[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Sets the currently targeted gizmo to rotation.
|SetScale(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD| Sets the currently targeted gizmo to scaling.
|SetScale[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Sets the currently targeted gizmo to scaling.
|ActivateGizmo(IButton, ButtonEventData, Component)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData, [[Type:Component|Component]]: component> -> [[Type:Void|Void]] : HIDDEN METHOD|
|ActivateGizmo[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Component|Component]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Component|Component]]>|true|
|DestroySelected(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|DestroySelected[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|DestroyConfirm(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|DestroyConfirm[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnCancelMenu(IButton, ButtonEventData)|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]]: button, [[Type:ButtonEventData|ButtonEventData]]: eventData> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnCancelMenu[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnGizmoReplaced(SlotGizmo, SlotGizmo)|[[Type:Delegate|Delegate]]<[[Component:SlotGizmo|SlotGizmo]]: gizmo, [[Component:SlotGizmo|SlotGizmo]]: newGizmo> -> [[Type:Void|Void]] : HIDDEN METHOD|
|OnGizmoReplaced[[Component:SlotGizmo#SlotGizmoReplacement|SlotGizmo.SlotGizmoReplacement]]|[[Component:SlotGizmo#SlotGizmoReplacement|SlotGizmo.SlotGizmoReplacement]]|true|
}}
}}



Revision as of 06:01, 17 March 2025

Component image 
Dev Tool component as seen in the Scene Inspector

Detailed information can be located at Dev Tool.

Fields

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.
_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 DevTool.Selection See Selection section.
InteractionMode DevTool.Interaction See Interaction section.
_selectedAnchor PointAnchor The point anchor which is part of a gizmo this tool is moving currently.
_selectedAnchorHighlight Slot The slot being used to indicate what gizmo is currently being moved. Is an icosphere.
_material reference drive of OverlayFresnelMaterial The visual material used for the default cone mesh.
_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.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
ToggleDevModeButtonEventHandler ButtonEventHandler
DeselectAllButtonEventHandler ButtonEventHandler
OpenCreateButtonEventHandler ButtonEventHandler
OpenInspectorButtonEventHandler ButtonEventHandler
OpenGizmoOptionsButtonEventHandler ButtonEventHandler
SelectParentAction Action X Switches the gizmo to the parent Slot, and deletes the old gizmo.
ToggleSpaceAction Action X toggles the gizmo orientation between global and local.
SetTranslationAction Action X Sets the currently targeted gizmo to Translation
SetRotationAction Action X Sets the currently targeted gizmo to rotation.
SetScaleAction Action X Sets the currently targeted gizmo to scaling.
OnOpenParentButtonEventHandler ButtonEventHandler
SetTranslationButtonEventHandler ButtonEventHandler Sets the currently targeted gizmo to Translation
SetRotationButtonEventHandler ButtonEventHandler Sets the currently targeted gizmo to rotation.
SetScaleButtonEventHandler ButtonEventHandler Sets the currently targeted gizmo to scaling.
ActivateGizmoButtonEventHandler`1<Component> ButtonEventHandler`1<Component>
DestroySelectedButtonEventHandler ButtonEventHandler
DestroyConfirmButtonEventHandler ButtonEventHandler
OnCancelMenuButtonEventHandler ButtonEventHandler
OnGizmoReplacedSlotGizmo.SlotGizmoReplacement SlotGizmo.SlotGizmoReplacement

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.

Interaction

  • Interaction: What gizmo transformation should be relative to:
    • Tip: Gizmo transformation is relative to the tool's tip.
    • Projection: Gizmo transformation is relative to the projected point.

Examples

The DevTool component can be used on it's own to create a Developer Tool or be used in a ToolMultiplexer to create a MultiTool.

See Also