Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
Dismiss Notice
Join us now in the Performance Profiling Dev Blitz Day 2023 - Q&A forum where you can connect with our teams behind the Memory and CPU Profilers and the Frame Debugger.

Transition Overlay Start Problem

Discussion in 'Animation' started by TheLetterS, Dec 22, 2014.

  1. TheLetterS

    TheLetterS

    Joined:
    Jan 22, 2013
    Posts:
    31
    Hello,

    I am working on transitioning between two mecanim states and I'm having a problem with being unable to quickly transition into the new state. As an example, here is what I would like my transition to look like. Notice the overlap between Strafe and Moving occurs close to 0.

    GroundedMovingBefore.png

    However, when I press play in Unity it changes this overlap to the following:

    GroundedMovingAfter.png

    This results in a very slow transition. What causes this? I found that if I added an Exit Time condition of 0 then it will keep the overlap settings but that will prevent the transition from occurring until the Strafe state is at the very beginning.

    Thanks for any insight,
    Sarah
     
  2. imaginationrabbit

    imaginationrabbit

    Joined:
    Sep 23, 2013
    Posts:
    344
    I've had the exact issue and the only solution I found if I wanted to control exactly where the overlap occurred was to add an exit time condition as you did- So you either have to choose a quick transition in a place you can't control or a delayed transition from a place you can control.
     
    theANMATOR2b likes this.
  3. TheLetterS

    TheLetterS

    Joined:
    Jan 22, 2013
    Posts:
    31
    Thanks that confirmed what I saw as well. I found another work around for it, though it's kind of a pain. I added 10 transitions from Strafe to Moving where each has the same set of conditions except each transition has a slightly longer Exit Time, in increments of 0.1. This gives you the flexibility of having a relatively quick transition and being able to control that transition. The obvious drawback is that you have to add 10 transitions.

    I also tried it in Unity 5 and it seemed to work as you would expect so eventually I'll be able to remove most of the transitions.