• 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
...
  • Изменено
месяц спустя

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

Thanks for reporting. Comparing the old and new code, it sort of doesn't make sense why it would throw that warning.
But it should be handled in the next update.

If you want to apply it to your SkeletonAnimator.cs immediately, use this code: https://raw.githubusercontent.com/EsotericSoftware/spine-runtimes/3.6/spine-unity/Assets/spine-unity/SkeletonAnimator.cs

8 месяцев спустя

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 дней спустя

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 дней спустя

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 месяца спустя

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 дней спустя
Dmitriy Makeyev написал

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 месяцев спустя

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