stopWithTag method

void stopWithTag(
  1. Object tag
)

Stops all motions with the specified tag and removes them from the controller.

myNode.motions.stopWithTag('myMotionGroup');

Implementation

void stopWithTag(Object tag) {
  for (int i = _motions.length - 1; i >= 0; i--) {
    Motion motion = _motions[i];
    if (motion._tag == tag) {
      _stopAtIndex(i);
    }
  }
}