I’m making a 3D RPG game in Unity, and I don’t know why I can’t create an animation variable. Although I type the following codes,there is no place for me to drag the animation into the script of the player inspector.
Normally the “anim” that I typed in should be shown in black color which representing a variable, but I don’t know why it is showing in green.
private Animation anim;
thank you for any help!