Method ChangeSignalAtIndex
ChangeSignalAtIndex(int, SignalAsset)
Replaces the SignalAsset associated with a reaction at a specific index.
Declaration
public void ChangeSignalAtIndex(int idx, SignalAsset newKey)
Parameters
Type | Name | Description |
---|---|---|
int | idx | The index of the reaction. |
SignalAsset | newKey | The replacement SignalAsset. |
Remarks
The new SignalAsset can be null.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the replacement SignalAsset is already registered to this SignalReceiver. |