This repository was archived by the owner on May 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
using UnityExplorer . UI . Panels ;
11
11
using UnityExplorer . Runtime ;
12
12
using UniverseLib . Input ;
13
+ using UniverseLib . UI ;
13
14
14
15
namespace UnityExplorer
15
16
{
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public class InspectUnderMouse : UIPanel
41
41
private static Vector3 lastMousePos ;
42
42
43
43
// UIPanel
44
+ internal static readonly string UIBaseGUID = $ "{ ExplorerCore . GUID } .MouseInspector";
44
45
private UIBase inspectorUIBase ;
45
46
46
47
public override string Name => "Inspect Under Mouse" ;
@@ -205,7 +206,7 @@ public override void ConstructPanelContent()
205
206
// Create a new canvas for this panel to live on.
206
207
// It needs to always be shown on the main display, other panels can move displays.
207
208
208
- inspectorUIBase = UniversalUI . RegisterUI ( $ " { ExplorerCore . GUID } .MouseInspector" , null ) ;
209
+ inspectorUIBase = UniversalUI . RegisterUI ( UIBaseGUID , null ) ;
209
210
UIRoot . transform . SetParent ( inspectorUIBase . RootObject . transform ) ;
210
211
}
211
212
}
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public static bool ShowMenu
69
69
return ;
70
70
71
71
UniversalUI . SetUIActive ( ExplorerCore . GUID , value ) ;
72
+ UniversalUI . SetUIActive ( InspectUnderMouse . UIBaseGUID , value ) ;
72
73
}
73
74
}
74
75
You can’t perform that action at this time.
0 commit comments