• Unity
  • AnimatorController error - help needed

Unity 5.6, Spine & Spine-Unity runtime 3.6

Used SkeletonAnimator instead of SkeletonAnimation in scene, and encountered the error:

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount()

The controller is the default one; I didn't change it, simply set the clips up. There's only the base layer and no parameters used.
Hmmm...what did I do wrong? I tried google this error, but seems it's relatively rare. :think:

Thanks!

Related Discussions
...
un mois plus tard

A similar mistake about which I also wrote. Please correct.

8 mois plus tard

I am having the same warnings. A lot of them. Quite sure they are new so I am not sure why they pop up.

I am using the runtime version 3.6.x.x Since this thread is over 8 months old I think I should have the fixed version.

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount()
Spine.Unity.MecanimTranslator:Apply(Skeleton) (at Assets/spine-unity/SkeletonAnimator.cs:161)
Spine.Unity.SkeletonAnimator:Update() (at Assets/spine-unity/SkeletonAnimator.cs:78)

The link above is dead so I can't fix it myself-

Did the warnings appear just now? What changed?

Are you using the latest? This should be included in the unitypackage by now.
Spine Unity Download

7 jours plus tard

Thanks, Pharan,
I updated once more, as it seems I did not have the very last version of the runtime libs. Seems as if the errors are gone. Thanks a lot.

13 jours plus tard

I've just started using Spine (great software package!), and I'm seeing these same warnings with the latest unity runtime (the one dated 4/25).

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount(Animator)
Spine.Unity.MecanimTranslator:Apply(Skeleton) (at Assets/ImportedPackages/Spine/spine-unity/Components/SkeletonAnimator.cs:180)
Spine.Unity.SkeletonAnimator:Update() (at Assets/ImportedPackages/Spine/spine-unity/Components/SkeletonAnimator.cs:82)

They don't happen all the time, but every now and then I'll do something in the editor that tickles this and causes these to appear when I make any changes to the scene. If I run the game and then drop back into edit mode, they go away for a while, but they always seem to come back.

4 mois plus tard

The guys have already passed a year, many updates have been released. Warning that was a year ago and remained.

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount()
Spine.Unity.MecanimTranslator:Apply(Skeleton) (at Assets/Spine/spine-unity/SkeletonAnimator.cs:139)
Spine.Unity.SkeletonAnimator:Update() (at Assets/Spine/spine-unity/SkeletonAnimator.cs:82)

This was supposed to be already fixed in the latest version.
If you are seeing this in the latest version, do you have a repro case you can send to us? unity@esotericsoftware.com

8 jours plus tard
Dmitriy Makeyev a écrit

The guys have already passed a year, many updates have been released. Warning that was a year ago and remained.

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount()
Spine.Unity.MecanimTranslator:Apply(Skeleton) (at Assets/Spine/spine-unity/SkeletonAnimator.cs:139)
Spine.Unity.SkeletonAnimator:Update() (at Assets/Spine/spine-unity/SkeletonAnimator.cs:82)

Hey, try to remove Spine from Unity completely and re-import again. This helped me.

8 mois plus tard

Removed, set again. At first, I was told that there were zero warnings, but then again, at once, 500 - 600 messages of the following content:

spine-unity-3_7-2019-04-27

Animator is not playing an AnimatorController
UnityEngine.Animator:get_layerCount()
Spine.Unity.MecanimTranslator:Apply(Skeleton) (at Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs:222)
Spine.Unity.SkeletonMecanim:Update() (at Assets/Spine/Runtime/spine-unity/Components/SkeletonMecanim.cs:85)

Thanks for reporting the problem. We have just fixed the issue, it will be released together with the next unitypackages.

I will let you know as soon as it is available for download.


The unitypackages are now ready for download:
Spine Unity Download