I use StringToHash to cache all the animations but when doing IsPlaying it only accepts (string name). There is not (int hash) alternative for performance? When creating a combo system for a fighting game, how would you handle this since you can’t do it that way? Params are a little slow too in comparison to what that would do.
I don’t think animator has an IsPlaying, that’s the legacy animation (I think).
You get the current animator state info from which you can get the hash for current state.
1 Like