Search Unity

How to get rid of orphaned tracks&clips in TimelineAsset?

Discussion in 'Timeline' started by einWikinger, Feb 24, 2021.

  1. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    I had to delete a custom track type implementation (due to deprecation), but some existing timelines used those. Now I've got missing tracks on those timelines, which I can delete, but it'll orphan the clips that have been created on those tracks.
    Now, on every build, I get warnings that a script is missing for child assets on these TimelineAssets (those clips that haven't been cleaned up properly).

    Has anyone got an idea how I can get rid of those orphaned clips? I already tried to get hold of them through the AssetDatabase but it's just returning null references for those clip assets and thus, I can't "destroy" them or delete them. Manually editing the timeline asset file didn't work either, as the clips seem to be restored as soon as I switch back to unity.
     
  2. seoyeon222222

    seoyeon222222

    Joined:
    Nov 18, 2020
    Posts:
    186
    Did you find a solution?
     
  3. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    No, I manually cleaned those timeline assets in the end. There may be newer APIs available now though that would allow access to the underlying data
     
    seoyeon222222 likes this.