bool CreateAnimations(SpriteStudioBaker baker) { string message = null; if (baker.animePackList == null) return true; try { for (int i = 0; i < baker.animePackList.Count; i++) { SpriteStudioAnimePack animePack = baker.animePackList [i]; message = animePack.name; EditorUtility.DisplayProgressBar("Sprite Studio For Unity", "Create Animator(" + (i + 1) + "/" + baker.animePackList.Count + ") : " + animePack.name, 0.9f); baker.CreateAnimator(animePack); } } catch (Exception e) { EditorUtility.DisplayDialog("Error", "Create Animator : " + message, "OK"); Debug.Log(e.StackTrace); return false; } return true; }