Updated the duplicate node. |
Added key detail. |
||
Line 17: | Line 17: | ||
The '''Duplicate Slot''' node makes a copy of a [[Slot|slot]] and exposes the duplicated slot with the output called <code>Duplicate</code> which can be used for any nodes that accept the [[Slot|slot]] type. | The '''Duplicate Slot''' node makes a copy of a [[Slot|slot]] and exposes the duplicated slot with the output called <code>Duplicate</code> which can be used for any nodes that accept the [[Slot|slot]] type. | ||
This node can take an overriding parent as an input for the duplicated slot. This acts similarly to the [[ProtoFlux:Set Parent|Set Parent]] node without needing the extra node. | This node can take an overriding parent as an input for the duplicated slot. This acts similarly to the [[ProtoFlux:Set Parent|Set Parent]] node (with <code>PreserveGlobalPosition</code> enabled, which is default on that node) without needing the extra node. | ||
== Inputs == | == Inputs == |
Latest revision as of 00:27, 18 March 2025
Duplicate Slot
Slots
The Duplicate Slot node makes a copy of a slot and exposes the duplicated slot with the output called Duplicate
which can be used for any nodes that accept the slot type.
This node can take an overriding parent as an input for the duplicated slot. This acts similarly to the Set Parent node (with PreserveGlobalPosition
enabled, which is default on that node) without needing the extra node.
Inputs
* (Call)
Call this to write the value.
Template (Slot)
The slot to make a duplicate of.
OverrideParent (Slot)
The slot to place the duplicated slot under.
Outputs
Next (Continuation)
Will fire after Instance (Slot) has been duplicated due to * (Call) being impulsed.
Duplicate (Slot)
The duplicate of Instance (Slot). Will only exist during the Next (Continuation) Impulse context.
Examples
-
Example of how to use a duplicate slot with a template, to make a vending-machine esque item button.Example of how to use a duplicate slot with a template, to make a vending-machine esque item button.