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

Timeline and Multi-Scene

Discussion in 'Timeline' started by Antoine_OSG, Aug 1, 2017.

  1. Antoine_OSG

    Antoine_OSG

    Joined:
    Sep 2, 2016
    Posts:
    43
    I'm trying to implement Timeline in a multi-scene context. I am linking some Exposed Reference from the scene the Timeline belongs to, but also from other scenes that are opened at the same time.

    In preview mode, it works fine, but as soon as I hit play, all references to other scenes are lost.

    Is that the expected behaviour, or is there an easy workaround to animate my objects regardless of the scene they belong to?

    Thanks in advance.
     
    Xarbrough likes this.
  2. thierry_unity

    thierry_unity

    Joined:
    Jun 10, 2015
    Posts:
    187
    Hi!
    Right now the multi-scene in timeline isn't really supported. It is something we have on roadmap for future versions.
     
    Xarbrough likes this.
  3. Antoine_OSG

    Antoine_OSG

    Joined:
    Sep 2, 2016
    Posts:
    43
    Good to know...
    Thanks for your answer
     
  4. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    127
    Need For multi scene!
     
    LaurieAnnis likes this.
  5. Antoine_OSG

    Antoine_OSG

    Joined:
    Sep 2, 2016
    Posts:
    43
    FYI @tinyant I've been able to do multiscene binding by saving the gameobject name instead of its reference (make sure the name is unique across all scenes though)
     
  6. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    127
    Cool,We indeed can make some Unique name or tag, find them with unique name and re-bind them. That's may be not very safe.
     
  7. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    127
    We can Make our own scene reference system(Scene Object manager system).may be more safe and more under control.
     
  8. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    528
    We also made a custom and rough system to allow multi-scene references. It did work but it was not very convenient. When working on very big and long cinematic, which we feel timeline is all about, it seems obvious that not every characters and environments will be in the same scene. So multi-scene references should be another priority (among all those the community already pointed out) to make Timeline really useful and powerful.
     
  9. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    127
    When we work on long cinematic, there will multi people to modify the same scene. so we must separate story content into multi "small" scenes to make more few conflicts.
     
    artemio_morales likes this.
  10. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    391
    This is desperately needed. We make extensive use of scene streaming and not being able to reference objects from other scenes means Timeline isn't really practical for us.
     
  11. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    Can't it just fetch the active camera if none is specified?
     
  12. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    This is what I've done for referencing current camera:
    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.Playables;
    3. using UnityEngine.Timeline;
    4. using Cinemachine;
    5. using Cinemachine.Timeline;
    6.  
    7. public class CineMachineAdvTrack : Cinemachine.Timeline.CinemachineTrack {
    8.  
    9.     protected override Playable CreatePlayable(PlayableGraph graph, GameObject go, TimelineClip clip)
    10.     {
    11.  
    12.         go.GetComponent<PlayableDirector>().SetGenericBinding(this, Camera.main.GetComponent<CinemachineBrain>());
    13.  
    14.         return base.CreatePlayable(graph, go, clip);
    15.     }
    16.  
    17. }
     
    mandisaw likes this.
  13. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    55
    @thierry_unity is this still something that you're working on?
    Would really love having multi-scene timelines! :)
     
  14. thierry_unity

    thierry_unity

    Joined:
    Jun 10, 2015
    Posts:
    187
    I'm not working with the Timeline team anymore but I'll ask them :)
     
    themeshpotato likes this.
  15. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    55
    Thanks! I really appreciate it
     
  16. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    55
    @thierry_unity Did you find time to ask the Timeline team?
    You can always just point me to one of them and I'll ask :)
     
  17. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    There's no official support yet, but it is being looked at. Keep an eye out in 2020.
     
    ROBYER1 and themeshpotato like this.
  18. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    55
  19. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    55