existingAction method
Returns an existing AnimationAction for the passed clip, optionally using a root object different from the mixer's default root.
The first parameter can be either an page:AnimationClip
object or the
name of an AnimationClip.
Implementation
AnimationAction? existingAction(AnimationClip clip, optionalRoot) {
final root = optionalRoot ?? this.root;
final rootUuid = root.uuid;
final clipObject = clip;//clip.runtimeType.toString() == 'String'? AnimationClip.findByName(root, clip):clip,
final clipUuid = clipObject.uuid;//clipObject ? clipObject.uuid : clip;
final actionsForClip = actionsByClip[clipUuid];
if (actionsForClip != null) {
return actionsForClip['actionByRoot'][rootUuid];
}
return null;
}