Component:MaterialTool

From Resonite Wiki
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> A function that can be used in a snapper to filter what objects can snap to a snapper (filters to material orbs only).
EditMaterial:ButtonEventHandler ButtonEventHandler Called when the edit material button is touched.
CreateCopy:ButtonEventHandler ButtonEventHandler Called when the create copy button is touched.
CreateMaterial:ButtonEventHandler ButtonEventHandler Called when the create material button is touched.
ConvertAllMaterials:ButtonEventHandler`1<Slot> ButtonEventHandler`1<Slot> Called when the convert all button is touched.
ConvertMaterial:ButtonEventHandler ButtonEventHandler Called when the convert button is touched.
RunConversion:Action`2<DevCreateNewForm, Slot> Action`2<DevCreateNewForm, Slot> Called when the convert process is started.
CanKnobControlInteract:GrabCheck GrabCheck Can be used to check if a grabber is allowed to interact with a grabber. Can be used to filter the same hand from grabbing an item on this material tip! (possibly only instance of this behavior being possible)

Usage

See Material Tool.

Examples

See Material Tool.

See Also