Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.