Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Removing Old Recorded Animation

Discussion in 'Timeline' started by SystemId, Dec 12, 2020.

  1. SystemId

    SystemId

    Joined:
    Aug 5, 2016
    Posts:
    11
    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
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    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.
     
  3. paul-masri-stone

    paul-masri-stone

    Joined:
    Mar 23, 2020
    Posts:
    49
    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.
    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:
    Code (CSharp):
    1.  
    2. --- !u!74 &-6920315730872410450
    3. AnimationClip:
    4.   m_ObjectHideFlags: 0
    5.   m_CorrespondingSourceObject: {fileID: 0}
    6.   m_PrefabInstance: {fileID: 0}
    7.   m_PrefabAsset: {fileID: 0}
    8.   m_Name: Recorded (2)
    9.   serializedVersion: 6
    10.   m_Legacy: 0
    11.   m_Compressed: 0
    12.   m_UseHighQualityCurve: 1
    13.   m_RotationCurves: []
    14.   m_CompressedRotationCurves: []
    15.   m_EulerCurves: []
    16.   m_PositionCurves: []
    17.   m_ScaleCurves: []
    18.   m_FloatCurves:
    19.   - curve:
    20.       serializedVersion: 2
    21.       m_Curve:
    22.       - serializedVersion: 3
    23.         time: 0
    24.         value: 1
    25.         inSlope: 0
    26.         outSlope: 0
    27.         tangentMode: 136
    28.         weightedMode: 0
    29.         inWeight: 0.33333334
    30.         outWeight: 0.33333334
    31.       m_PreInfinity: 2
    32.       m_PostInfinity: 2
    33.       m_RotationOrder: 4
    34.     attribute: m_Alpha
    35.     path:
    36.     classID: 225
    37.     script: {fileID: 0}
    38.   m_PPtrCurves: []
    39.   m_SampleRate: 60
    40.   m_WrapMode: 0
    41.   m_Bounds:
    42.     m_Center: {x: 0, y: 0, z: 0}
    43.     m_Extent: {x: 0, y: 0, z: 0}
    44.   m_ClipBindingConstant:
    45.     genericBindings:
    46.     - serializedVersion: 2
    47.       path: 0
    48.       attribute: 1574349066
    49.       script: {fileID: 0}
    50.       typeID: 225
    51.       customType: 0
    52.       isPPtrCurve: 0
    53.     pptrCurveMapping: []
    54.   m_AnimationClipSettings:
    55.     serializedVersion: 2
    56.     m_AdditiveReferencePoseClip: {fileID: 0}
    57.     m_AdditiveReferencePoseTime: 0
    58.     m_StartTime: 0
    59.     m_StopTime: 0
    60.     m_OrientationOffsetY: 0
    61.     m_Level: 0
    62.     m_CycleOffset: 0
    63.     m_HasAdditiveReferencePose: 0
    64.     m_LoopTime: 0
    65.     m_LoopBlend: 0
    66.     m_LoopBlendOrientation: 0
    67.     m_LoopBlendPositionY: 0
    68.     m_LoopBlendPositionXZ: 0
    69.     m_KeepOriginalOrientation: 0
    70.     m_KeepOriginalPositionY: 1
    71.     m_KeepOriginalPositionXZ: 0
    72.     m_HeightFromFeet: 0
    73.     m_Mirror: 0
    74.   m_EditorCurves:
    75.   - curve:
    76.       serializedVersion: 2
    77.       m_Curve:
    78.       - serializedVersion: 3
    79.         time: 0
    80.         value: 1
    81.         inSlope: 0
    82.         outSlope: 0
    83.         tangentMode: 136
    84.         weightedMode: 0
    85.         inWeight: 0.33333334
    86.         outWeight: 0.33333334
    87.       m_PreInfinity: 2
    88.       m_PostInfinity: 2
    89.       m_RotationOrder: 4
    90.     attribute: m_Alpha
    91.     path:
    92.     classID: 225
    93.     script: {fileID: 0}
    94.   m_EulerEditorCurves: []
    95.   m_HasGenericRootTransform: 0
    96.   m_HasMotionFloatCurves: 0
    97.   m_Events: []
    98.  
     
  4. paul-masri-stone

    paul-masri-stone

    Joined:
    Mar 23, 2020
    Posts:
    49
    I take that back. Manually deleting that block broke the timeline.

    BTW I'm using Timeline package 1.5.5
     
  5. OlgaB_BFX

    OlgaB_BFX

    Joined:
    Nov 19, 2020
    Posts:
    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

    upload_2022-2-1_19-20-25.png

    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!
     
    Last edited: Feb 2, 2022
    paul-masri-stone likes this.
  6. paul-masri-stone

    paul-masri-stone

    Joined:
    Mar 23, 2020
    Posts:
    49
    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?
     
  7. OlgaB_BFX

    OlgaB_BFX

    Joined:
    Nov 19, 2020
    Posts:
    5
  8. paul-masri-stone

    paul-masri-stone

    Joined:
    Mar 23, 2020
    Posts:
    49
    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).
     
  9. OlgaB_BFX

    OlgaB_BFX

    Joined:
    Nov 19, 2020
    Posts:
    5
    paul-masri-stone likes this.
  10. paul-masri-stone

    paul-masri-stone

    Joined:
    Mar 23, 2020
    Posts:
    49
    Great! Well spotted. I wonder which version of Unity will include the fix. I haven't tested it in 2021.2 yet.