Component:SetAssetReference: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
update to say asset.
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|Name=Set Asset Reference`1
|Name=Set Asset Reference`1
}}
}}
{{stub}}
The '''Set Asset Reference''' component is used to store an [[undo]] step for setting a reference field for assets to another asset.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Target|'''[[Type:AssetRef`1|AssetRef`1]]<A>'''|TypeAdv0=true|
|Target|'''[[Type:AssetRef`1|AssetRef`1]]<A>'''|TypeAdv0=true| The field that was changed.
|TargetBefore|{{RootFieldType|AssetRef`1|A}}|TypeAdv1=true|
|TargetBefore|{{RootFieldType|AssetRef`1|A}}|TypeAdv1=true| The asset value before the change
|TargetAfter|{{RootFieldType|AssetRef`1|A}}|TypeAdv2=true|
|TargetAfter|{{RootFieldType|AssetRef`1|A}}|TypeAdv2=true| The asset value after the change.
|_performed|Bool|
|_performed|Bool| Whether the undo step was done or undone.
|_description|String|
|_description|String| The description of the change that was made and what to for the context menu label text when undoing/redoing.
}}
}}


== Behavior ==
== Usage ==
Not used directly by the user.


== Examples ==
== Examples ==
See [[Undo]].


== See Also ==
== See Also ==
* [[Undo]]


[[Category:Components:Uncategorized{{#translation:}}|Set Asset Reference`1]]
[[Category:Components:Uncategorized{{#translation:}}|Set Asset Reference`1]]
[[Category:Components{{#translation:}}|Set Asset Reference`1]]
[[Category:Components{{#translation:}}|Set Asset Reference`1]]
[[Category:Generic Components{{#translation:}}|Set Asset Reference`1]]
[[Category:Generic Components{{#translation:}}|Set Asset Reference`1]]
[[Category:ComponentStubs]]

Latest revision as of 18:56, 6 May 2025

Component image 
Set Asset Reference`1 component as seen in the Scene Inspector

The Set Asset Reference component is used to store an undo step for setting a reference field for assets to another asset.

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 AssetRef`1<A> The field that was changed.
TargetBefore A The asset value before the change
TargetAfter A The asset 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