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
  3. Dismiss Notice

"Atomic" has never worked for me

Discussion in 'Animation' started by Larb, Sep 25, 2013.

  1. Larb

    Larb

    Joined:
    Feb 17, 2013
    Posts:
    20
    Hi guys I have made several projects with mecanim, but never had luck with the "atomic" setting in the panel, and I would like to know if I am using it wrong.

    How I do:
    I have two states: idle and run and the following transitions between them:
    Idle -> Run = 0.5 sec transition (if run = true)
    Run <- Idle = 0.0 sec transition (if run = false)

    If the player stops holding the "run button" (run = false) during the 0.5 sec transition, I would like the animation to break the transition and return to idle, if I deselct "Atomic" I see no difference. Isn't this how it is supposed to work?
     
  2. pierrepaul

    pierrepaul

    Unity Technologies

    Joined:
    Jun 19, 2012
    Posts:
    162
    Hi.

    Currently, a non-atomic transition can only be interrupted by another transition that is in the same SourceState and that is higher priority ( higher in the list ).

    However in 4.3 we will have a feature called GotoState that will allow you to interrupt whatever Mecanim is doing and go to a specific state at a specific time.

    pp
     
  3. Larb

    Larb

    Joined:
    Feb 17, 2013
    Posts:
    20
    Thanks for the clarification, that explains why it didn't work as I was using it wrong :D
    GotoState sounds awesome, I know we have been waiting for that feature.