• Editor
  • [Bug] Unity C# - Animation

Script 'Animation' has the same name as built-in Unity component.
AddComponent and GetComponent will not work with this script.

Which means because you have a c sharp file called Animation, it will not work with that script with GetComponent. It's a harmless issue, just raising it in case anyone has ideas of adding it as a component via code.

Related Discussions
...

Animation isn't a Component, so the warning isn't important. Unity should be smart enough to see Animation doesn't extend MonoBehaviour and avoid the warning. 🙂

Yep. Spine.Animation is more like a data structure for Spine's other classes than some coherent component you could slap directly onto a game object.