12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEditor;
- using System.IO;
- using System.Linq;
- using System;
- using PublicTools.XMLDataBase;
- using XRTool.UI;
- using UnityEngine.SceneManagement;
- using UnityEditor.UI;
- namespace XRTool.Util
- {
- /// <summary>
- /// 场景Load面板
- /// 显示此场景的所有内容
- /// </summary>
- public class ScenesLoadWindow : EditorWindow
- {
- [MenuItem("XRTool/Utilities/ScenesLoadWindow", false, 0)]
- public static void OpenWindow()
- {
- // Dock it next to the Scene View.
- var window = GetWindow<ScenesLoadWindow>(typeof(ScenesLoadWindow));
- window.titleContent = new GUIContent("ScenesLoadWindow");
- window.Show();
- //ButtonEditor
- }
- private string[] scenesList;
- private void OnEnable()
- {
- scenesList = null;
- scenesList = new string[SceneManager.sceneCount];
- for (int i = 0; i < SceneManager.sceneCount; i++)
- {
- scenesList[i] = SceneManager.GetSceneAt(i).name;
- }
- }
- private void OnGUI()
- {
- }
- }
- }
|