mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-09-20 05:25:59 +08:00
Make sure Mouse Inspect dropdown list gets destroyed after option chosen
This commit is contained in:
@ -64,7 +64,6 @@ namespace UnityExplorer.UI.Inspectors
|
|||||||
internal static Camera MainCamera;
|
internal static Camera MainCamera;
|
||||||
internal static GraphicRaycaster[] graphicRaycasters;
|
internal static GraphicRaycaster[] graphicRaycasters;
|
||||||
|
|
||||||
|
|
||||||
public void StartInspect(MouseInspectMode mode)
|
public void StartInspect(MouseInspectMode mode)
|
||||||
{
|
{
|
||||||
MainCamera = Camera.main;
|
MainCamera = Camera.main;
|
||||||
@ -94,8 +93,14 @@ namespace UnityExplorer.UI.Inspectors
|
|||||||
public void StopInspect()
|
public void StopInspect()
|
||||||
{
|
{
|
||||||
Inspecting = false;
|
Inspecting = false;
|
||||||
|
|
||||||
UIManager.NavBarRect.gameObject.SetActive(true);
|
UIManager.NavBarRect.gameObject.SetActive(true);
|
||||||
UIManager.PanelHolder.SetActive(true);
|
UIManager.PanelHolder.SetActive(true);
|
||||||
|
|
||||||
|
var drop = UIManager.MouseInspectDropdown;
|
||||||
|
if (drop.transform.Find("Dropdown List") is Transform list)
|
||||||
|
drop.DestroyDropdownList(list.gameObject);
|
||||||
|
|
||||||
UIRoot.SetActive(false);
|
UIRoot.SetActive(false);
|
||||||
|
|
||||||
if (Mode == MouseInspectMode.UI)
|
if (Mode == MouseInspectMode.UI)
|
||||||
|
Reference in New Issue
Block a user