keyword public not working

Hi,
I am trying to animate a game object, but even after putting a public animator in my script it does not show in the Unity inspector. How so ?


Remove the static. Those never show in the inspector.

ALSO: screenshots of code are not a thing. If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

Remove the word static

By dragging it into the slot on the instance.

Rather than one of us retyping hours of bland common knowledge in here, go look at pretty much any Unity tutorial at all. It’s like the single-most-common way of connecting EVERYTHING in Unity.

Referencing variables, fields, methods (anything non-static) in other script instances: