mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-01 03:12:40 +08:00
use SetPanelActive instead of manually setting gameobject active
This commit is contained in:
@ -39,7 +39,7 @@ namespace UnityExplorer.Inspectors.MouseInspectors
|
||||
LastHitObjects.Clear();
|
||||
LastHitObjects.AddRange(currentHitObjects);
|
||||
var panel = UIManager.GetPanel<UiInspectorResultsPanel>(UIManager.Panels.UIInspectorResults);
|
||||
panel.SetActive(true);
|
||||
UIManager.SetPanelActive(panel, true);
|
||||
panel.ShowResults();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user