Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AnimatorControllerHelper.cs 538B

12345678910111213141516171819
  1. using UnityEditor.Animations;
  2. namespace UnityEditor.U2D.Aseprite.Common
  3. {
  4. internal static class AnimatorControllerHelper
  5. {
  6. [Callbacks.OnOpenAsset]
  7. static bool OnOpenAsset(int instanceID, int line)
  8. {
  9. var controller = EditorUtility.InstanceIDToObject(instanceID) as AnimatorController;
  10. if (controller)
  11. {
  12. EditorApplication.ExecuteMenuItem("Window/Animation/Animator");
  13. return true;
  14. }
  15. return false;
  16. }
  17. }
  18. }