Save Timeline Window

Hi,

We use timeline with recorders. I create recorder clips by script et remove them when it’s finished recording.

I have this dialog that appears when I want to quit my scene. On a previous projet, saving Timeline was not linked to the scene. Since it’s an asset I did not need to save it but now in my Editor I can do Ctrl S to save it. That’s a new behavior of the timeline for me.

7408118--905741--upload_2021-8-11_12-19-43.png

I would like to make it saved automatically by script. How can I proceed please?

Can you use AssetDatabase.SaveAssetIfDirty(obj)? Ellka from Unity towards the end of this thread How to best use API to create new sequences automatically? - Unity Engine - Unity Discussions shared some possibly useful code.

1 Like