Component:GlobalDelegate

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


The GlobalDelegate<T> component is used by ProtoFlux to define a global of a sync delegate 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.
Delegate delegate of identity T The underlying delegate of the global.

Usage

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

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 method proxy nodes point to.

This component can also simply be used for static global delegates 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<SyncField<WorldDelegate>> by being able to see the underlying delegate directly from the UI.

Examples

See Also