0
Answered

AnimatorController "problem"

Sylvester Grant 3 years ago updated 3 years ago 8

Hello,

Im currently using Opsive TPC/Behavior Designer, Playmaker, Patico CGK, Core SpawnKit; and I keepr getting this error. No matter how many times I reinstall all assets. Could is be a script excute error or something on my end.

Assets/Chronos/Source/Dependencies/Reflection/Editor/AnimatorParameterDrawer.cs(177,55): error CS0030: Cannot convert type `UnityEngine.RuntimeAnimatorController' to `AnimatorController'



Chronos Version:
2.4.9
Unity Version:
5.6

Answer

+1
Answer

Is it possible that one of your plugins defines an "AnimatorController" class in the global namespace?

Try replacing:

.Select(animator => ((AnimatorController)animator.runtimeAnimatorController))

With:

.Select(animator => ((UnityEditor.Animations.AnimatorController)animator.runtimeAnimatorController))
GOOD, I'M SATISFIED
Satisfaction mark by Sylvester Grant 3 years ago
Pending Review

Hi Sylvester,

Thanks for the bug report. You're not the first user to report it, but I haven't been able to reproduce it. There is no compile error at that line on my machine.

What is your target platform? I suspect Unity might be changing its API depending on the platform.

Also, are you getting this error only when building or also in the editor?

Im targeting PC,MAC and Linuz <DX11>
Only when trying to build, i had an issue with this in the past. I dont know what is causing this error but I will import Chronus first and my core assets next and see what happens.

I reinstalled all my assets and Im still getting that same error


+1
Answer

Is it possible that one of your plugins defines an "AnimatorController" class in the global namespace?

Try replacing:

.Select(animator => ((AnimatorController)animator.runtimeAnimatorController))

With:

.Select(animator => ((UnityEditor.Animations.AnimatorController)animator.runtimeAnimatorController))
+2

It works for me.


In my case, the bad plugin is "Custom Gravitations Kit". It contains its own "AnimtorController.cs" in "Character Controller".