Duplicate Slot (LogiX node)
The Duplicate Slot node creates a copy of the target input slot when an impulse is received.
Inputs & Outputs
Color | Label | Type |
DoDestroy | Impulse | |
Template | Slot |
Color | Label | Type |
OnDuplicated | Impulse | |
Duplicate | Slot |
Usage
The duplicated slot is generated under the same parent as the template slot.
Examples
This node is commonly used when one wants to spawn an item when an event occurs, have a template object set to inactive (invisible and uninteractable) and duplicate that. Often one needs to reparent the duplicate immediately using a Set Parent (LogiX node). If the template slot is itself set as active, but it is inactive due to a parent slot being inactive, the duplicate will spawn as active too and will be visible after reparenting under another active slot. However if the template slot is itself inactive then the duplicate will spawn as inactive too and will need to be activated (e.g. with a Set Slot Active Self (LogiX node)) before it will be visible or interactable.