Removing Old Recorded Animation

Hello,
I looked around all over but couldn’t seem to find a proper solution:

Whats the best way to remove old Recorded Animations in a Timeline? I’ve tried many ways to try to remove them. I even went as far as deleting all the tracks in my timeline to test it, but the recorded animations are still in the timeline.

I built a pretty complex Timeline for a 2D project, but now I have some not used Recorded animation junking up the timeline. I think this is causing a bug with my timeline because now animation clips I put into my timeline do not move the objects I want anymore.

If anyone knows a quick method of cleanly deleting them please share it with me.

Thxs

When you delete the track or clip that created the recorded timeline, it should be removed as well. Make sure you ‘Save Project’ afterwards. The changes don’t reflect in the Project window until the timeline is saved.

I have the same problem (Unity 2021.1.7f1).
I have saved the project and I see the .playable files show as modified (in Git).

In the following, the highlighted clip and the 2 below are not used and not accessible (even to delete) within the inspector.
7263925--876598--Screenshot 2021-06-23 at 13.14.41.png

I was able to remove one of these but only by manually editing the .playable file removing the following:

--- !u!74 &-6920315730872410450
AnimationClip:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: Recorded (2)
  serializedVersion: 6
  m_Legacy: 0
  m_Compressed: 0
  m_UseHighQualityCurve: 1
  m_RotationCurves: []
  m_CompressedRotationCurves: []
  m_EulerCurves: []
  m_PositionCurves: []
  m_ScaleCurves: []
  m_FloatCurves:
  - curve:
      serializedVersion: 2
      m_Curve:
      - serializedVersion: 3
        time: 0
        value: 1
        inSlope: 0
        outSlope: 0
        tangentMode: 136
        weightedMode: 0
        inWeight: 0.33333334
        outWeight: 0.33333334
      m_PreInfinity: 2
      m_PostInfinity: 2
      m_RotationOrder: 4
    attribute: m_Alpha
    path:
    classID: 225
    script: {fileID: 0}
  m_PPtrCurves: []
  m_SampleRate: 60
  m_WrapMode: 0
  m_Bounds:
    m_Center: {x: 0, y: 0, z: 0}
    m_Extent: {x: 0, y: 0, z: 0}
  m_ClipBindingConstant:
    genericBindings:
    - serializedVersion: 2
      path: 0
      attribute: 1574349066
      script: {fileID: 0}
      typeID: 225
      customType: 0
      isPPtrCurve: 0
    pptrCurveMapping: []
  m_AnimationClipSettings:
    serializedVersion: 2
    m_AdditiveReferencePoseClip: {fileID: 0}
    m_AdditiveReferencePoseTime: 0
    m_StartTime: 0
    m_StopTime: 0
    m_OrientationOffsetY: 0
    m_Level: 0
    m_CycleOffset: 0
    m_HasAdditiveReferencePose: 0
    m_LoopTime: 0
    m_LoopBlend: 0
    m_LoopBlendOrientation: 0
    m_LoopBlendPositionY: 0
    m_LoopBlendPositionXZ: 0
    m_KeepOriginalOrientation: 0
    m_KeepOriginalPositionY: 1
    m_KeepOriginalPositionXZ: 0
    m_HeightFromFeet: 0
    m_Mirror: 0
  m_EditorCurves:
  - curve:
      serializedVersion: 2
      m_Curve:
      - serializedVersion: 3
        time: 0
        value: 1
        inSlope: 0
        outSlope: 0
        tangentMode: 136
        weightedMode: 0
        inWeight: 0.33333334
        outWeight: 0.33333334
      m_PreInfinity: 2
      m_PostInfinity: 2
      m_RotationOrder: 4
    attribute: m_Alpha
    path:
    classID: 225
    script: {fileID: 0}
  m_EulerEditorCurves: []
  m_HasGenericRootTransform: 0
  m_HasMotionFloatCurves: 0
  m_Events: []

I take that back. Manually deleting that block broke the timeline.

BTW I’m using Timeline package 1.5.5

I am running into the same problems with deleting timeline tracks.
I delete the track in unity, save the project but the monobehevior track and clips still remain in the *.playable file.
The only solution I’ve found is deleting them manually from the file.

Unity 2020.3.6

One reason I can see why this might not delete this track is because it references itself as the parentTrack for it’s clips, so when unity does a search for references, it sees its used and doesn’t delete it

I don’t see a reason for the ParentTrack field at all since its a list of clips under the track as is.

Unity really needs to fix this!

1 Like

I’ve just seen that user seant_unity no longer exists. Perhaps they’ve left the company. In that case, we’re raising the issue in a vacuum. Has anyone reported this as a bug?

The only bug i found is this one: Unity Issue Tracker - [Timeline] When deleting a track that has a binding, the director will keep a reference to the binding
It says it was fixed though.
I think we need to actually report a new bug with the information we have

I agree a new bug report is needed. I am deep in client work at the moment and won’t have a chance to submit a bug report for a couple of weeks. If you’re able to do it, please include a link to this thread and also post the bug link here when it gets created (usually takes about a week for it to be processed and then they email you with a link).

Good news. It seems unity finally got to it.

  • Fixed an issue where unused TrackAssets would be saved in the TimelineAsset file after removing tracks.

https://docs.unity3d.com/Packages/com.unity.timeline@1.6/changelog/CHANGELOG.html
It is a package.

1 Like

Great! Well spotted. I wonder which version of Unity will include the fix. I haven’t tested it in 2021.2 yet.