Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Discussion Optimized way to find currently playing animation?

Discussion in 'Animation' started by Ziron999, Feb 24, 2024.

  1. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    282
    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.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,960