Error
AssetsScriptsAnimatronic AIFreddy.cs(2,19): error CS0234: The type or namespace name 'Animations' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
I have animations in my game, and I cannot build my game due to this line
using UnityEditor.Animations;
I replaced each
using UnityEditor.Animations;
with
#if UNITY_EDITOR
using UnityEditor.Animations;
#endif
however it’s still saying
AssetsScriptsAnimatronic AIFreddy.cs(23,12): error CS0246: The type or namespace name 'AnimatorController' could not be found (are you missing a using directive or an assembly reference?)
If I can’t use AnimatorControllers, my game won’t work. How do I fix this and build with the Animator Controllers?
3