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]]<[[Type:Float3|Float3]]>'''|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]]<[[Type:FloatQ|FloatQ]]>'''|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]]<[[Type:Float3|Float3]]>'''|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]]<[[Type:Bool|Bool]]>'''|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.
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.