예제 #1
0
    public static void OpenScene()
    {
        string theScenePath = SceneCache.theScenePath;

        if (!string.IsNullOrEmpty(theScenePath) && SceneUtils.CheckFileExist(theScenePath))
        {
            AssetDatabase.CopyAsset(theScenePath, "Assets/Copy.unity");
            EditorSceneManager.OpenScene("Assets/Copy.unity");
            return;
        }
    }