Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Legacy Animation sequencing and triggering problem

Discussion in 'Animation' started by Deeeds, Aug 19, 2018.

  1. Deeeds

    Deeeds

    Joined:
    Mar 15, 2018
    Posts:
    739
    I have two clips in an Animation Component:

    clipA
    clipB

    OnColliderEnter, clipA should play.
    OnColliderExit, clipB should play, immediately, regardless of what time position clipA is currently at.


    anim.Play("clipA")


    then, at any other point in time:

    anim.Play("clipB") 


    should, so far as I can tell, immediately play clipB, regardless of where in time clipA currently is.

    This sometimes works. Most of the time, it doesn't.

    Are there reliability problems with this?