I want to retrieve the list of all animator state name from a script editor. Is it possible? I didn’t find any working solutions yet. I’m using Unity version 5.3.
I want to make a script editor that allow to set an AudioClip to play when entering in an animator state. So, that why i need the list of all animator state that exist within the animator. Otherwise, i will have to hardcode the list but i want to avoid doing that.