Component:GlobalReference

From Resonite Wiki
Component image 
File:GlobalReference`1Component.png
Global Reference<T> component as seen in the Scene Inspector


The GlobalReference<T> component is used by ProtoFlux to define a global of a reference type.

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 T The underlying reference of the global.

Usage

When not using ProtoFlux, This component has no use over more idiomatic components such as a ReferenceField.

When using ProtoFlux, the underlying reference can be changed and any node that accepts a global reference input that references the component will update during execution. This can allow one to dynamically change things like where source nodes point to.

This component can also simply be used for static global references that need to be referenced in a lot of places for when the overhead of dynamic variables is undesirable. When combined with the Global To Output node, this component provides more UX than sourcing a ReferenceField by being able to see the underlying reference directly.

See Also