mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-03 16:13:25 +08:00
use SetPanelActive instead of manually setting gameobject active
This commit is contained in:
parent
647b0d353d
commit
48e688cb75
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user