- Home /
Detect when project is saved
Is there a built-in function to know when the user press CTRL+S or File->Save / File->Save Project?
I found a workaround to do it with C#, but that's from 1 year ago and seems a little hackish. Maybe now Unity provides a more elegant solution.
Comment
Best Answer
Answer by Veehmot · Feb 25, 2012 at 02:53 AM
**AssetModificationProcessor.OnWillSaveAssets**
This is called by Unity when it is about to write serialized assets or scene files to disk.