ProtoFlux:Destroy Slot Children: Difference between revisions

From Resonite Wiki
m needs to be standardized. marking as stub
add more info, fix types
 
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name": "*", "Type": "Impulse"},
{"Name": "*", "Type": "Call"},
{"Name": "Instance", "Type": "Slot"},
{"Name": "Instance", "Type": "Slot"},
{"Name": "PreserveAssets", "Type": "bool"},
{"Name": "PreserveAssets", "Type": "bool"},
Line 15: Line 15:
|}}
|}}


Remove all children of the [[Slot | slot]].
Remove all children of the provided Instance ([[Slot|Slot]]).


{{Stub}}
== Inputs ==
<i> needs to be standardized </i>
 
=== * ([[Impulses|Call]]) ===
 
Call to destroy the children slots of Instance ([[Slot|Slot]])
 
=== Instance ([[Slot|Slot]]) ===
 
The slot to destroy all the children for.
 
=== PreserveAssets ([[Type:Bool|bool]]) ===
 
Whether or not the assets associated with the children of the provided Instance ([[Slot|Slot]]) should stay or be instantly discarded
 
=== SendDestroyingEvent ([[Type:Bool|bool]]) ===
 
Whether or not to send a destroying event of the children slots to other nodes like [[ProtoFlux:On Destroying|On Destroying]]
 
== Outputs ==
 
=== Next ([[Impulses|Continuation]]) ===
 
Sends an Impulse after * ([[Impulses|Call]]) is called and Instance ([[Slot|Slot]])'s children has been destroyed. will not fire if Instance ([[Slot|Slot]]) is null.
 
 
== Examples ==
 
<gallery widths=480px heights=480px>
File:ProtoFlux_example_destroy_slot_children_1.webp|A button hooked up to destroy a huge list of children of slot using Destroy Children
File:ProtoFlux_example_destroy_slot_children_2.webp|The aftermath of pressing the button.
</gallery>


[[Category:ProtoFlux:Slots]]
[[Category:ProtoFlux:Slots]]

Latest revision as of 01:41, 10 February 2024

Destroy Slot Children
*
Next
Instance
PreserveAssets
SendDestroyingEvent
Slots

Remove all children of the provided Instance (Slot).

Inputs

* (Call)

Call to destroy the children slots of Instance (Slot)

Instance (Slot)

The slot to destroy all the children for.

PreserveAssets (bool)

Whether or not the assets associated with the children of the provided Instance (Slot) should stay or be instantly discarded

SendDestroyingEvent (bool)

Whether or not to send a destroying event of the children slots to other nodes like On Destroying

Outputs

Next (Continuation)

Sends an Impulse after * (Call) is called and Instance (Slot)'s children has been destroyed. will not fire if Instance (Slot) is null.


Examples