Component:ReferenceDriveReceiver

From Resonite Wiki
Component image 
Reference Drive Receiver`1 component as seen in the Scene Inspector

The ReferenceDriveReceiver component is used to allow dropping a reference proxy via the user's hand onto a UIX element to trigger the prompt for driving a reference field. This requires a UIX button to work.

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.
Reference SyncRef`1<T> The field this should allow an option to drive for when a reference is dropped onto the UIX element this is on.

Usage

Attach to a slot as part of a Component:Canvas hierarchy with a Component:Button in the same slot. Provide a value for Reference for it to start working.

Examples

Used in Scene Inspectors to allow for driving reference fields by dragging and dropping references.

See Also