Component:ExternalSlotSaver: Difference between revisions

From Resonite Wiki
add info
fix fields
 
Line 11: Line 11:
|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.
|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| When not null, save this rather than <code>TargetSlot</code>'s current rotation value.
|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| When not null, save this rather than <code>TargetSlot</code>'s current scale value.
|IgnoreWhenNonPersistentSelf|Bool| Whether to not save the external slot if we are non persistent ourselves.  
}}
}}



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