ModularList
ReferencesAn array of input or output parameters of a ModularComponent which maintains the hidden/shown states of the optional parameters.
Constructors
Properties
Categories
#Enumerate over all parameter categories. Parameters are grouped if they're optional and share the same __Category custom value.
OptionalParameters
#Enumerate over all optional parameters. An optional parameter must have a TRUE value in the CustomValues stored under ModularComponent.__Optional.
Indexers
Methods
Hide
#Hide the parameter at the given index. This is only possible if the parameter is optional. Any wires currently connected to the parameter are severed (with the disconnections added to the undo list) and the connection data is cached in the parameter's CustomValues so that the wires can be reinstated when the parameter is shown again.
Parameters:
| index (int) | Index of the parameter to hide. |
| undo (ActionList = null) | Optional undo list. Wire disconnection actions and the visibility/cache state change action are added here. |
Show
#Show the parameter at the given index. If the parameter has a cached list of wires recorded from a previous hide operation, those wires are reinstated where possible. Any wires successfully reconnected are appended to the undo list.
Parameters:
| index (int) | Index of the parameter to show. |
| undo (ActionList = null) | Optional undo list. Wire reconnection actions and the visibility/cache state change action are added here. |