Clear

void ICommandQueue.Clear()

Removes all command sequences and their commands from the queue and aborts the running command (if any).

Throws
Remarks

The state of all command sequences and commands that were in the queue prior to clearing it will be CommandState.Failed and the queue state will be CommandQueueState.Idle. Calling this function while the queue is empty has no effect.