Component:ExternalSlotSaver: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
fix fields
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|Name=External Slot Saver
|Name=External Slot Saver
}}
}}
{{stub}}
The ExternalSlotSaver will ensure that the <code>TargetSlot</code> is saved as a child of the slot this component is on if the slot isn't already in the hierarchy.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetSlot|Slot|
|TargetSlot|Slot| The slot to target when saving.
|SaveActiveSelfOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Bool|Bool]]&gt;'''|TypeAdv1=true|
|SaveActiveSelfOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Bool|Bool]]&gt;'''|TypeAdv1=true| When not null, save this rather than <code>TargetSlot</code>'s current active self value.
|SaveLocalPositionOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv2=true|
|SaveLocalPositionOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv2=true| When not null, save this rather than <code>TargetSlot</code>'s current position value.
|SaveLocalRotationOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:FloatQ|FloatQ]]&gt;'''|TypeAdv3=true|
|SaveLocalRotationOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:FloatQ|FloatQ]]&gt;'''|TypeAdv3=true| When not null, save this rather than <code>TargetSlot</code>'s current rotation value.
|SaveLocalScaleOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv4=true|
|SaveLocalScaleOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv4=true| When not null, save this rather than <code>TargetSlot</code>'s current scale value.
|IgnoreWhenNonPersistentSelf|Bool|
|IgnoreWhenNonPersistentSelf|Bool| Whether to not save the external slot if we are non persistent ourselves.
}}
}}


== Behavior ==
== Usage ==


== Examples ==
== Examples ==
Line 23: Line 23:
[[Category:Components:Utility{{#translation:}}|External Slot Saver]]
[[Category:Components:Utility{{#translation:}}|External Slot Saver]]
[[Category:Components{{#translation:}}|External Slot Saver]]
[[Category:Components{{#translation:}}|External Slot Saver]]
[[Category:ComponentStubs]]

Latest revision as of 04:44, 23 December 2024

Component image 
External Slot Saver component as seen in the Scene Inspector

The ExternalSlotSaver will ensure that the TargetSlot is saved as a child of the slot this component is on if the slot isn't already in the hierarchy.

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.
TargetSlot Slot The slot to target when saving.
SaveActiveSelfOverride Nullable`1<Bool> When not null, save this rather than TargetSlot's current active self value.
SaveLocalPositionOverride Nullable`1<Float3> When not null, save this rather than TargetSlot's current position value.
SaveLocalRotationOverride Nullable`1<FloatQ> When not null, save this rather than TargetSlot's current rotation value.
SaveLocalScaleOverride Nullable`1<Float3> When not null, save this rather than TargetSlot's current scale value.
IgnoreWhenNonPersistentSelf Bool Whether to not save the external slot if we are non persistent ourselves.

Usage

Examples

See Also