Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EditorApplication.SaveAssets

Switch to Manual
public 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.