Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Terrible Bug! Hope fix! Timeline window error when diffrent control track control same sub timeline

Discussion in 'Timeline' started by EP-Toushirou, Oct 26, 2022.

  1. EP-Toushirou

    EP-Toushirou

    Joined:
    Nov 19, 2019
    Posts:
    38
    1. What happened
    version:1.7.2, bug reason:TimelineUtility.GetBindingPairsFromDirectors

    Timeline window error when diffrent control track control diffrent obj but use same sub timeline

    Error Info:
    ArgumentException: An item with the same key has already been added. Key: Animation Track (UnityEngine.Timeline.AnimationTrack)
    System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <e40e5a8f982c4b618a930d29f9bd091c>:0)
    System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <e40e5a8f982c4b618a930d29f9bd091c>:0)
    UnityEditor.Timeline.TimelineUtility.GetBindingPairsFromDirectors[T] (System.Collections.Generic.IEnumerable`1[T] directors) (at Library/PackageCache/com.unity.timeline@1.7.2/Editor/TimelineUtility.cs:286)
    UnityEditor.Timeline.WindowState.OnStartPreview (UnityEngine.Playables.PlayableDirector director) (at Library/PackageCache/com.unity.timeline@1.7.2/Editor/State/WindowState.cs:1016)
    UnityEditor.Timeline.WindowState.GatherProperties (UnityEngine.Playables.PlayableDirector director) (at Library/PackageCache/com.unity.timeline@1.7.2/Editor/State/WindowState.cs:993)
    UnityEditor.Timeline.TimelineWindow.RebuildGraphIfNecessary (System.Boolean evaluate) (at Library/PackageCache/com.unity.timeline@1.7.2/Editor/Window/TimelineWindow.cs:468)
    UnityEditor.Timeline.TimelineWindow.OnGUI () (at Library/PackageCache/com.unity.timeline@1.7.2/Editor/Window/TimelineWindow.cs:251)



    1.Two Control track control two Cube
    2.Two cubes use same timeline

    upload_2022-10-26_19-13-39.png


    upload_2022-10-26_19-14-15.png

    upload_2022-10-26_19-14-51.png