Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:Clear

From Resonite Wiki
Clear
*
OnCleared
Collection
OnFail
Collections

The Clear node takes in a Collection and removes all elements from the collection when called.

If you wanted to remove only matching elements from a collection, use the RemoveAll node instead.

Known compatible types: any collection that is not read only

Known incompatible types: any collection that is read only

Acquiring This Node

When choosing the Clear node from a ProtoFlux Browser, it will present 2 options. Choose the one which has both the collection input and the type input. The TCollection field should then be filled in with the full type of the collection (e.g. SyncRefArray<Slot>), and the TValue field should be filled in with the type.

a node browser set to the clear node, collection field is filled in with sync ref list with type slot, and value field is filled in with slot
Example valid inputs

This node cannot take in type inputs which are dictionaries. Use type conversion to acquire such nodes instead.

This node can be safely type converted.

Inputs

* (Call)

Calls an impulse to remove all elements from the collection.

* (IList)

The collection to remove all elements from.

Outputs

OnCleared (Continuation)

Fires when successfully clearing out the collection.

OnFail (Continuation)

Fires when the collection could not be cleared.