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代表用户取消了操作,不会打开新的场景。

最后修改:2011年6月25日 Saturday 20:02

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。