Component:GrabReferenceSet

From Resonite Wiki
Revision as of 00:06, 10 May 2024 by Alizard (talk | contribs)
Component image 
Grab Reference Set`1 component as seen in the Scene Inspector


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


The GrabReferenceSet can be used to write a reference to a field on grab and release.

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.
Target SyncRef`1<T>
GrabbedTarget T
ReleasedTarget T
SetOnGrabbed Bool
SetOnReleased Bool

Behavior

While on the same slot as a Grabbable the component can be configured to set a reference on grabbed and on released.

Examples

See Also