How can I get full tag from AnimatorStateInfo ?
I see only
int AnimatorStateInfo.tagHash
bool AnimatorStateInfo.IsTag(string)
What I want to have is to use tag as flags ex:
tag = “Flag1 Flag2”
And than search for particular word at runtime.
How can I get full tag from AnimatorStateInfo ?
I see only
int AnimatorStateInfo.tagHash
bool AnimatorStateInfo.IsTag(string)
What I want to have is to use tag as flags ex:
tag = “Flag1 Flag2”
And than search for particular word at runtime.
The runtime only uses the hashes. In builds, the original names don’t exist. In the editor, you can get the information from AnimatorState.tag but that’s editor-only, you need to manually match the AnimatorStateInfo to the correct AnimatorState, and somehow extract and save the information you need in your builds.
See also: Can I get the name of the current state in my animator?