fix types, add gallery |
Updated the duplicate node. |
||
Line 5: | Line 5: | ||
[ | [ | ||
{"Name": "*", "Type": "Call"}, | {"Name": "*", "Type": "Call"}, | ||
{"Name": " | {"Name": "Template", "Type": "Slot"}, | ||
{"Name": "OverrideParent", "Type": "Slot"} | |||
] | ] | ||
|Outputs= | |Outputs= | ||
Line 14: | Line 15: | ||
|}} | |}} | ||
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. | |||
== Inputs == | == Inputs == | ||
Line 24: | Line 25: | ||
Call this to write the value. | Call this to write the value. | ||
=== | === Template ([[Slot|Slot]]) === | ||
The slot to make a duplicate of. | The slot to make a duplicate of. | ||
=== OverrideParent ([[Slot|Slot]]) === | |||
The slot to place the duplicated slot under. | |||
== Outputs == | == Outputs == |
Revision as of 23:50, 17 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 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.