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

Flexible duration of animation - animator

Discussion in 'Animation' started by MrSynce, Jun 6, 2019.

  1. MrSynce

    MrSynce

    Joined:
    Nov 25, 2018
    Posts:
    5
    I am creating doors animator. I've created 2 states for open and close state. There isnt any motion just 2 animations with one frame each with setted rotation. I can interrupt opening but when i interrupt the duration of the closing is still the same. And the doors are closing very slowly.

    I want to somehow manage it to have like closeDuration=closeDuration-currentOpenDuration and vice versa.
    Is it possible to do it only by settings in the animator?

    Currently i have this doors.png
     
  2. Kybernetik

    Kybernetik

    Joined:
    Jan 3, 2013
    Posts:
    2,554
    My Animancer plugin (link in my signature) has an example scene which demonstrates how to implement doors using only an opening animation which you simply play forwards or backwards as necessary.