Component:SetValue

From Resonite Wiki
(Redirected from Component:SetValue`1)
Component image 
Set Value`1 component as seen in the Scene Inspector

Set Value is a component that is part of the undo system.

Usage

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.
Target IField`1<T> The field edited by the user.
ValueBefore T The value before it was edited by the user.
ValueAfter T The value after it was edited by the user.
_performed Bool Whether this has been done or has been undone instead.
_description String The description of this undo step.

Behavior

Examples

This component is generated by the Undo Manager when a user edits a value field, usually through a Text Editor inside of an inspector.

See Also