Component:SetReference

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

The Set Reference component is internally used by the Undo System for setting and reverting a Reference.

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.
Target SyncRef`1<T> The field that was changed.
TargetBefore T The reference value before the change.
TargetAfter T The reference value after the change.
_performed Bool Whether the undo step was done or undone.
_description String The description of the change that was made and what to for the context menu label text when undoing/redoing.

Usage

Not used directly by the user.

Examples

See Undo.

See Also