EditorApplication.SaveCurrentSceneIfUserWantsTo 用户是否希望保存当前场景
static function SaveCurrentSceneIfUserWantsTo () : bool
Description描述
Ask the user if he wants to save the open scene.
询问用户是否要保存当前场景。
You might want to call this before opening another scene or creating a new scene. A return value of true indicates that you may continue. A return value of false indicates that the user cancelled the operation and you should not Open another Scene.
在打开另一个场景或者新建一个场景时,你可能需要调用这个函数,返回true代表你可以继续,返回false代表用户取消了操作,不会打开新的场景。