Component:GrabToolSnapper

From Resonite Wiki


This article or section is a Stub. You can help the Resonite Wiki by expanding it.

Component image 
Grab Tool Snapper component as seen in the Scene Inspector

The GrabToolSnapper component snaps a grabbable component's slot on the same slot as this component to the tip of a tool or your tooltip anchor when the Grabbable is grabbed.

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.
Offset Float3 How far away from the tool the object should be upon grab.

Usage

This component is mostly for internal use, it is what is responsible for the ReferenceProxy text that appears when you grab slots and fields in the inspector.


You can still use it if you would like, please check the behavior section.

Behavior

If this component is added to a IGrabbable Object, when this object is grabbed it will be positioned at the tip of your Tool plus any offset specified in the offset field. On it's own this is not that usable but this is used internally with some UI Fields and Proxies to provide the blue text as shown above.


Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also