Component:SetType: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 4: Line 4:
}}
}}
{{stub}}
{{stub}}
Set type is a component that is part of the [[undo]] system. This stores an undo step for setting a type field.


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Target|SyncType|
|Target|SyncType| The value field for a type value that was changed.
|ValueBefore|{{RootFieldType|SyncType}}|TypeAdv1=true|
|ValueBefore|{{RootFieldType|SyncType}}|TypeAdv1=true| The value it was before edit.
|ValueAfter|{{RootFieldType|SyncType}}|TypeAdv2=true|
|ValueAfter|{{RootFieldType|SyncType}}|TypeAdv2=true| The value it became after edit.
|_performed|Bool|
|_performed|Bool| Whether this was done (true) or can be redone (false)
|_description|String|
|_description|String| The description of this undo step for changing a type field.
}}
}}


Line 19: Line 20:


== See Also ==
== See Also ==
[[Undo|Undo System]]


[[Category:Components:Uncategorized{{#translation:}}|Set Type]]
[[Category:Components:Uncategorized{{#translation:}}|Set Type]]
[[Category:Components{{#translation:}}|Set Type]]
[[Category:Components{{#translation:}}|Set Type]]
[[Category:ComponentStubs]]

Latest revision as of 22:04, 21 October 2024

Component image 
Set Type component as seen in the Scene Inspector


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Set type is a component that is part of the undo system. This stores an undo step for setting a type field.

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 SyncType The value field for a type value that was changed.
ValueBefore direct SyncType The value it was before edit.
ValueAfter direct SyncType The value it became after edit.
_performed Bool Whether this was done (true) or can be redone (false)
_description String The description of this undo step for changing a type field.

Behavior

Examples

See Also

Undo System