Make abstract UIPanel class, refactor SceneExplorer into that, some fixes

This commit is contained in:
Sinai
2021-04-16 17:49:05 +10:00
parent c8a64c39b1
commit 1769a4ed8d
10 changed files with 437 additions and 603 deletions

View File

@ -65,8 +65,6 @@ namespace UnityExplorer.Core
/// </summary>
public static int LoadedSceneCount => SceneManager.sceneCount + 2;
// Cached on startup, will never change during runtime (and generally doesn't change between Unity versions either)
internal static Scene DontDestroyScene => DontDestroyMe.scene;
internal static int DontDestroyHandle => DontDestroyScene.handle;
@ -84,6 +82,8 @@ namespace UnityExplorer.Core
}
private static GameObject dontDestroyObject;
public static bool InspectingAssetScene => SelectedScene == AssetScene;
internal static Scene AssetScene => AssetObject.scene;
internal static int AssetHandle => AssetScene.handle;