Component:MaterialTool: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
Automated: update SyncDelegates
Line 26: Line 26:
== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|SnapFilter[[Type:Func`3|Func`3]]<[[Component:Snapper|Snapper]], [[Component:SnapTarget|SnapTarget]], [[Type:Bool|Bool]]>|[[Type:Func`3|Func`3]]<[[Component:Snapper|Snapper]], [[Component:SnapTarget|SnapTarget]], [[Type:Bool|Bool]]>|true|
|SnapFilter:[[Type:Func`3|Func`3]]<[[Component:Snapper|Snapper]], [[Component:SnapTarget|SnapTarget]], [[Type:Bool|Bool]]>|[[Type:Func`3|Func`3]]<[[Component:Snapper|Snapper]], [[Component:SnapTarget|SnapTarget]], [[Type:Bool|Bool]]>|true|
|EditMaterial[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|EditMaterial:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|CreateCopy[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|CreateCopy:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|CreateMaterial[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|CreateMaterial:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|ConvertAllMaterials[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Slot|Slot]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Slot|Slot]]>|true|
|ConvertAllMaterials:[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Slot|Slot]]>|[[Type:ButtonEventHandler`1|ButtonEventHandler`1]]<[[Type:Slot|Slot]]>|true|
|ConvertMaterial[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|ConvertMaterial:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|RunConversion[[Type:Action`2|Action`2]]<[[Component:DevCreateNewForm|DevCreateNewForm]], [[Type:Slot|Slot]]>|[[Type:Action`2|Action`2]]<[[Component:DevCreateNewForm|DevCreateNewForm]], [[Type:Slot|Slot]]>|true|
|RunConversion:[[Type:Action`2|Action`2]]<[[Component:DevCreateNewForm|DevCreateNewForm]], [[Type:Slot|Slot]]>|[[Type:Action`2|Action`2]]<[[Component:DevCreateNewForm|DevCreateNewForm]], [[Type:Slot|Slot]]>|true|
|CanKnobControlInteract[[Type:GrabCheck|GrabCheck]]|[[Type:GrabCheck|GrabCheck]]|true|
|CanKnobControlInteract:[[Type:GrabCheck|GrabCheck]]|[[Type:GrabCheck|GrabCheck]]|true|
}}
}}



Revision as of 06:31, 17 March 2025

Component image 
Material Tool component as seen in the Scene Inspector

See Material 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. 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.
_orbSlot Slot The slot to store the material orb when an orb is placed into the tool or picked from an object.
ReplacementMode AssetToolReplacementMode How to replace materials using the tool.
AreaRadius Float The radius to use when ReplacementMode is set to Area.
_areaIndicator Slot The slot that is the root of the area indicator visual.
_areaIndicatorRadius field drive of Float The area indicator's radius field.
_areaIndicatorOffset field drive of Float3 The area indicator's offset field.
_areaIndicatorActive field drive of Bool The area indicator's active field, used to disable the visual when ReplacementMode is not set to Area.
_knobControlActive field drive of Bool The active field of the knob control visual/control.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
SnapFilter:Func`3<Snapper, SnapTarget, Bool> Func`3<Snapper, SnapTarget, Bool>
EditMaterial:ButtonEventHandler ButtonEventHandler
CreateCopy:ButtonEventHandler ButtonEventHandler
CreateMaterial:ButtonEventHandler ButtonEventHandler
ConvertAllMaterials:ButtonEventHandler`1<Slot> ButtonEventHandler`1<Slot>
ConvertMaterial:ButtonEventHandler ButtonEventHandler
RunConversion:Action`2<DevCreateNewForm, Slot> Action`2<DevCreateNewForm, Slot>
CanKnobControlInteract:GrabCheck GrabCheck

Usage

See Material Tool.

Examples

See Material Tool.

See Also