12345678910111213141516171819202122232425262728293031323334353637 |
- //------------------------------------------------------------
- // Game Framework v3.x
- // Copyright © 2013-2017 Jiang Yin. All rights reserved.
- // Homepage: http://gameframework.cn/
- // Feedback: mailto:jiangyin@gameframework.cn
- //------------------------------------------------------------
- using UnityEngine;
- using UnityEngine.SceneManagement;
- namespace UnityGameFramework.Runtime
- {
- public partial class DebuggerComponent
- {
- private sealed class SceneInformationWindow : ScrollableDebuggerWindowBase
- {
- protected override void OnDrawScrollableWindow()
- {
- GUILayout.Label("<b>Scene Information</b>");
- GUILayout.BeginVertical("box");
- {
- DrawItem("Scene Count:", SceneManager.sceneCount.ToString());
- DrawItem("Scene Count In Build Settings:", SceneManager.sceneCountInBuildSettings.ToString());
- Scene activeScene = SceneManager.GetActiveScene();
- DrawItem("Active Scene Name:", activeScene.name);
- DrawItem("Active Scene Path:", activeScene.path);
- DrawItem("Active Scene Build Index:", activeScene.buildIndex.ToString());
- DrawItem("Active Scene Is Dirty:", activeScene.isDirty.ToString());
- DrawItem("Active Scene Is Loaded:", activeScene.isLoaded.ToString());
- DrawItem("Active Scene Root Count:", activeScene.rootCount.ToString());
- }
- GUILayout.EndVertical();
- }
- }
- }
- }
|