public JsonAnimatorController(UnityEditor.Animations.AnimatorController controller_, Animator animator, ResId id_, ResourceMapper resMap) { controller = controller_; if (!controller) { throw new System.ArgumentNullException("controller_"); } if (!animator) { throw new System.ArgumentNullException("animator"); } id = id_; name = controller.name; path = AssetDatabase.GetAssetPath(controller); parameters = controller.parameters.Select((arg) => new JsonAnimatorControllerParameter(arg)).ToList(); animationIds = controller.animationClips.Select((arg) => resMap.getAnimationClipId(arg, animator)).ToList(); //animations = controller.animationClips.Select((arg, idx) => new JsonAnimationClip(arg, idx)).ToList(); }