Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Forgot to set offsets to "Apply scene offsets" in timeline

Discussion in 'Timeline' started by mubarakalmehairbi-codya, Dec 22, 2023.

  1. mubarakalmehairbi-codya

    mubarakalmehairbi-codya

    Joined:
    Jul 13, 2023
    Posts:
    16
    Hi,

    If I understand the track offsets correctly, if I keep the track offsets of an animation track as "Apply Transform Offsets", then the animation will start relative to the object's original position. However, if I set it as "Apply Scene Offsets" then the animation will always start at fixed position.

    When I play a cutscene, I want the animation to start at a fixed position in the scene. However, sometimes I start creating the cutscene while forgetting to change the default "Apply Transform Offsets" to "Apply Scene Offsets", and when I try to set it later on to "Apply Scene Offsets", the animation starts at a very far away position.

    My question: if I forget to set the offsets to "Apply Scene Offsets" and started creating the cutscene, how do I change it to "Apply Scene Offsets" without ruining the cutscene and having to repeat many things? Or preferably, how do I make the object's animation relative to ANOTHER object in the scene (the manager of the cutscene) instead of its own position or the scene itself?
     
  2. inmim

    inmim

    Joined:
    Aug 23, 2019
    Posts:
    24
    this is similar to a problem I'm having as well. I'm making the equivalent of an executive overview video, with about 24 timelines, and I'm about to pull my hair out.
     
  3. mubarakalmehairbi-codya

    mubarakalmehairbi-codya

    Joined:
    Jul 13, 2023
    Posts:
    16
    I figured out that what matters is not the location of the gameobject itself, but the location of its parent(s). The "Apply Transform Offsets" is relative to the parent gameobject and not the gameobject itself. So for example, if I have this hierarchy in my scene:
    • Cutscene Parent
      • PlayableDirector
      • MyObject1 (my player for example)
      • MyObject2 (the enemy for example)
    then if I move the "Cutscene Parent", then all the objects that were playing in the cutscene will move with it. In other words: I am currently keeping all the objects within the timeline as "Apply Transform Offsets", but if I want to change their positions within the scene, then I change the location of "Cutscene Parent".
    I am not 100% sure about what I just said because I haven't dealt much with unity timeline recently.
     
  4. adventurefan

    adventurefan

    Joined:
    Jan 17, 2014
    Posts:
    232
    This sounds similar to the editor problem where it doesn't show you the new results of Apply Scene Offsets until you toggle Preview on and off in the Timeline editor.

    Ran into that wild issue last night...but does work fine to change the setting, you just have to watch out for the editor preview not refreshing by itself.