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

Transitioning out of a timeline animation (skipping a cutscene)

Discussion in 'Cinemachine' started by ARuncibleSpoon, Oct 31, 2017.

  1. ARuncibleSpoon

    ARuncibleSpoon

    Joined:
    Jul 17, 2017
    Posts:
    3
    I'm using a Cinemachine dolly cam in a fly-through of an environment by animating it with a cinemachine track in a timeline, and transitioning to a virtual cam linked to the player at the end. How can I allow the timeline to be cut short (provide an option to skip) while still making a smooth transition to the player camera?

    please let me know if this is the wrong way or place to ask this question.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    You could do it with a second timeline that does nothing but transition from the dolly cam to the player cam. When the Skip button is pressed, enable that timeline.
     
  3. ARuncibleSpoon

    ARuncibleSpoon

    Joined:
    Jul 17, 2017
    Posts:
    3
    Thank you for the quick response!

    Follow up question: would I need to use a second playable director or would I set the playable variable in the first playable director to use the second timeline?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Probably either way would work. It's up to you, whatever feels cleaner.
     
  5. ARuncibleSpoon

    ARuncibleSpoon

    Joined:
    Jul 17, 2017
    Posts:
    3
    I tried out the multiple Timelines and it works perfectly, but I'm wondering if there's a way I can just speed up the playback of the primary timeline instead of switching? I know unity's animator has a playback speed variable that can be changed through code, does Timeline offer something similar?
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Maybe, but the transition would be accelerated too. Is that what you want? You'd have to ask on the timeline forum about how to do it.