Component:ExternalSlotDuplicator

From Resonite Wiki
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