I have some problem when get AnimInstance->CurrentStateName

I want to know when the animation ends. I’m using the animation state, and I’m not using the montage right now.

I found from some articles that using montage makes it easy to know the end time of animation.

So, I tried it.

1
That is my old version animation graph.

This time, AnimInstance->CurrentStateName() is worked.
So I was able to create a function to restrict behavior from state names.

2
That is new verion animation graph.


Now, this code always makes an error.
illegal name, Name_none… whatever.

I tried so many ways but I failed.

How I fixed it?
Or please Tell me another way.