Search Unity

Animation blending doesn't work properly when adding clips in runtime

Discussion in 'Timeline' started by simplergamedev, Aug 10, 2022.

  1. simplergamedev

    simplergamedev

    Joined:
    May 30, 2019
    Posts:
    4
    I have a timeline in my game which essentially replicates the unity timeline. When I add animations to the timeline WITH A TIMELINE WINDOW OPENED IN THE EDITOR, the animation blending works perfectly. However, when the timeline window is closed, then THIS happens. Animation clips update well, but not when it comes to blending them together. Please help. What other ways can you suggest for updating the timeline (Excluding those that use UnityEditor.Timeline)?

    I tried so many things, but the only thing that works was opening a timeline window in unity...

    playableDirector.RebuildGraph();
    playableDirector.RebindPlayableGraphOutputs();
    playableDirector.Play(newTimelineAsset);

    doesn't work

    This was the only thing that worked and just because it opened the Timeline window in the editor
    TimelineEditor.GetWindow().ShowTab();



    ezgif-1-0b3d9d8d1f.gif
     
  2. Dylan_Shorten

    Dylan_Shorten

    Joined:
    Aug 30, 2020
    Posts:
    1
  3. simplergamedev

    simplergamedev

    Joined:
    May 30, 2019
    Posts:
    4