void OnPathSettingView() { GUILayout.Space(10f); //场景打包路径 if (needPackageScene) { var scenePath = EditorGUIExtension.FolderSelector("Scene Directory :", rawScenePath); if (string.IsNullOrEmpty(scenePath)) { rawScenePath = ""; } else { var index = scenePath.IndexOf("Assets"); var length = scenePath.Length; rawScenePath = scenePath.Substring(index, length - index); } } GUILayout.Space(10f); //代码打包路径 var codePath = EditorGUIExtension.FolderSelector("Code Directory :", rawCodePath); if (string.IsNullOrEmpty(codePath)) { rawCodePath = ""; } else { var index = codePath.IndexOf("Assets"); var length = codePath.Length; rawCodePath = codePath.Substring(index, length - index); } GUILayout.Space(10f); //DataTable打包路径 var tablePath = EditorGUIExtension.FolderSelector("DataTable Directory :", rawDataTablePath); if (string.IsNullOrEmpty(codePath)) { rawDataTablePath = ""; } else { var index = tablePath.IndexOf("Assets"); var length = tablePath.Length; rawDataTablePath = tablePath.Substring(index, length - index); } GUILayout.Space(10f); }