Animator Tags

Hi. I can’t really find any helpful info about using the tag info in the animator. I want to just simply access the tag (in this case the tag is closed) and then do something if the tag is closed. Thank you!

if (AnimatorStateInfo.IsTag ("Closed")) {
            //do something here
            Debug.Log ("closed");
        }

i’m not sure what you are asking for… but AnimatorStateInfo isn’t static… you’ll need to get the state info from the Animator instance.

Thank you…I still do not understand though. I already went to that docs page before I asked the question. Can you please give me an example on how I would use the tag. I want to be able to access the tag name somehow.
Thank you in advance.
Rachel