Component:GlobalValue

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


The GlobalValue<T> component is used by ProtoFlux to define a global of a FrooxEngine value 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.
Value T The underlying value of the global.

Usage

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

When using ProtoFlux, the underlying value can be changed and any node that accepts a global input that references the component will update during execution. This can allow one to dynamically change things like dynamic impulse receiver tags.

This component can also simply be used for static global values 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 also provides more UX than sourcing a ValueField by being able to see the underlying value directly.

See Also