EditorApplication.SaveAssets Manual     Reference     Scripting  
Scripting > Editor Classes > EditorApplication
EditorApplication.SaveAssets

static function SaveAssets () : void

Description

Saves all serializable assets that have not yet been written to disk (eg. Materials)

Also makes sure the asset database is written.