Component:ReferenceField

From Resonite Wiki
(Redirected from ReferenceField (Component))
This page contains changes which are not marked for translation.

Reference Field is a component that is able to store a reference for later use, as long as the reference still exists by then. This can be used in tandem with a Reference Grab Receiver Component as a place to store the value received by said component. This component's Reference field can be accessed with ProtoFlux. Using this as a Data Model Store is considered bad practice due to it making your code harder to read, use, and transfer.

Component image 
Reference Field`1 component as seen in the Scene Inspector


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.
Reference T A field that can be used to store any reference type.

Usage

Examples

Related Components