Search Unity

Animation Events skipped if animator state speed > 1

Discussion in 'Animation' started by TH_Unity, May 20, 2015.

  1. TH_Unity

    TH_Unity

    Joined:
    Jul 9, 2013
    Posts:
    11
    There is a bug in the Animation Event system, where an animation event might not get fired. This seems to only happen when the state speed is set to a value greater than 1.

    In my example I have a sword swing animation and two events called "frontswingStart" and "frontswingFinish". I use them to control the timeframe where an attack can actually damage an entity.

    Are animation events reliable in terms of framerate AND in terms of the state speed or is this considered a bug?
    Will this be fixed in Unity v5.1? (RC1 currently availbale)
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Yes there a few animation events bug that need to be fixed in 5.1, the fix is ready but will be available only in a patch-release after the final release.

    If you can please log a bug and send me the case number and I will validate if the patch does also fix your issue.