Search Unity

Timeline and Multi-Scene

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

  1. R40ul_OSG

    R40ul_OSG

    Joined:
    Sep 2, 2016
    Posts:
    42
    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

    Unity Technologies

    Joined:
    Jun 10, 2015
    Posts:
    181
    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. R40ul_OSG

    R40ul_OSG

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

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    103
    Need For multi scene!
     
  5. R40ul_OSG

    R40ul_OSG

    Joined:
    Sep 2, 2016
    Posts:
    42
    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:
    103
    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:
    103
    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:
    525
    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.
     
    Xarbrough, Shorely and rustofelees like this.
  9. tinyant

    tinyant

    Joined:
    Aug 28, 2015
    Posts:
    103
    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:
    266
    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. }
     
  13. themeshpotato

    themeshpotato

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

    thierry_unity

    Unity Technologies

    Joined:
    Jun 10, 2015
    Posts:
    181
    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:
    44
    Thanks! I really appreciate it
     
  16. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    44
    @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,010
    There's no official support yet, but it is being looked at. Keep an eye out in 2020.
     
    themeshpotato likes this.
  18. themeshpotato

    themeshpotato

    Joined:
    Apr 11, 2018
    Posts:
    44