Component:ExternalSlotDuplicator: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=External Slot Duplicator
|Name=External Slot Duplicator
}}
}}
{{stub}}
The '''ExternalSlotDuplicator''' component  parents <code>TargetSlot</code> under itself when this component is duplicated. If this component is parented under a larger hiearchy, the slot will only be parented if it's not anywhere under this larger hiearchy or this component's hiearchy. When the slot is parented back under this component, any non null specified transform values for this component are applied to the slot.
 
If <code>DoNotRestoreOriginalTransform</code> is enabled, it will parent the slot back where it came from and restore the original local transform values after duplication.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetSlot|Slot|
|TargetSlot|Slot| The slot to parent and write values for during duplication.
|LocalPositionOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv1=true|
|LocalPositionOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv1=true| The local position to apply to <code>TargetSlot</code> when parenting under this slot during duplication if this is not null.
|LocalRotationOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:FloatQ|FloatQ]]&gt;'''|TypeAdv2=true|
|LocalRotationOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:FloatQ|FloatQ]]&gt;'''|TypeAdv2=true| The local rotation to apply to <code>TargetSlot</code> when parenting under this component's slot during duplication if this is not null.
|LocalScaleOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv3=true|
|LocalScaleOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Float3|Float3]]&gt;'''|TypeAdv3=true| The local scale to apply to <code>TargetSlot</code> when parenting under this component's slot during duplication if this is not null.
|ActiveSelfOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Bool|Bool]]&gt;'''|TypeAdv4=true|
|ActiveSelfOverride|'''[[Type:Nullable`1|Nullable`1]]&lt;[[Type:Bool|Bool]]&gt;'''|TypeAdv4=true| The active state to apply to <code>TargetSlot</code>'s active field when parenting under this component's slot during duplication if this is not null.
|DoNotRestoreOriginalTransform|Bool|
|DoNotRestoreOriginalTransform|Bool| Whether to parent the slot back where it came from after duplication, Undoing all overrides and setting all values back to their originals.
}}
}}
== Behavior ==


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 23: Line 24:
[[Category:Components:Utility{{#translation:}}|External Slot Duplicator]]
[[Category:Components:Utility{{#translation:}}|External Slot Duplicator]]
[[Category:Components{{#translation:}}|External Slot Duplicator]]
[[Category:Components{{#translation:}}|External Slot Duplicator]]
[[Category:ComponentStubs]]

Latest revision as of 21:45, 15 January 2025

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

The ExternalSlotDuplicator component parents TargetSlot under itself when this component is duplicated. If this component is parented under a larger hiearchy, the slot will only be parented if it's not anywhere under this larger hiearchy or this component's hiearchy. When the slot is parented back under this component, any non null specified transform values for this component are applied to the slot.

If DoNotRestoreOriginalTransform is enabled, it will parent the slot back where it came from and restore the original local transform values after duplication.

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.
TargetSlot Slot The slot to parent and write values for during duplication.
LocalPositionOverride Nullable`1<Float3> The local position to apply to TargetSlot when parenting under this slot during duplication if this is not null.
LocalRotationOverride Nullable`1<FloatQ> The local rotation to apply to TargetSlot when parenting under this component's slot during duplication if this is not null.
LocalScaleOverride Nullable`1<Float3> The local scale to apply to TargetSlot when parenting under this component's slot during duplication if this is not null.
ActiveSelfOverride Nullable`1<Bool> The active state to apply to TargetSlot's active field when parenting under this component's slot during duplication if this is not null.
DoNotRestoreOriginalTransform Bool Whether to parent the slot back where it came from after duplication, Undoing all overrides and setting all values back to their originals.

Examples

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

See Also