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 1010using UnityExplorer . UI . Panels ;
1111using UnityExplorer . Runtime ;
1212using UniverseLib . Input ;
13+ using UniverseLib . UI ;
1314
1415namespace UnityExplorer
1516{
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ public class InspectUnderMouse : UIPanel
4141 private static Vector3 lastMousePos ;
4242
4343 // UIPanel
44+ internal static readonly string UIBaseGUID = $ "{ ExplorerCore . GUID } .MouseInspector";
4445 private UIBase inspectorUIBase ;
4546
4647 public override string Name => "Inspect Under Mouse" ;
@@ -205,7 +206,7 @@ public override void ConstructPanelContent()
205206 // Create a new canvas for this panel to live on.
206207 // It needs to always be shown on the main display, other panels can move displays.
207208
208- inspectorUIBase = UniversalUI . RegisterUI ( $ " { ExplorerCore . GUID } .MouseInspector" , null ) ;
209+ inspectorUIBase = UniversalUI . RegisterUI ( UIBaseGUID , null ) ;
209210 UIRoot . transform . SetParent ( inspectorUIBase . RootObject . transform ) ;
210211 }
211212 }
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ public static bool ShowMenu
6969 return ;
7070
7171 UniversalUI . SetUIActive ( ExplorerCore . GUID , value ) ;
72+ UniversalUI . SetUIActive ( InspectUnderMouse . UIBaseGUID , value ) ;
7273 }
7374 }
7475
You can’t perform that action at this time.
0 commit comments