is it posible to get an animation state and then play it using an giving string if that will be matching to the gotten string kinda like this
const states = animator.getstate();
for(let i =0;i>states.lenght;i+=){
if(states[i].name===this.givenstring){
anim.play(states[i]);
}
}
this is a rough sketch but kinda like this