/// static void CreateEditor(string assetPath) { string selectRootPath = XPathTools.GetFileRootPath(assetPath); // 处理开始 var scene = EditorSceneManager.OpenScene(GetEditorPath()); if (scene != null) { // 保存新场景 string savePath = XPathTools.Combine(selectRootPath, string.Format(saveDefaultName)); savePath = XPathTools.GetUniquePath(savePath); //做工,弄一个主角 EditorSceneManager.SaveScene(scene, savePath); } else { Debug.LogWarning("编辑器路径错误"); } }