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
{
///
/// 场景Load面板
/// 显示此场景的所有内容
///
public class ScenesLoadWindow : EditorWindow
{
[MenuItem("XRTool/Utilities/ScenesLoadWindow", false, 0)]
public static void OpenWindow()
{
// Dock it next to the Scene View.
var window = GetWindow(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()
{
}
}
}