mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-03 12:02:28 +08:00
safer UIRoot visibility check
This commit is contained in:
@ -12,8 +12,8 @@ namespace UnityExplorer.UI.Models
|
||||
|
||||
public bool Visible
|
||||
{
|
||||
get => UIRoot?.activeInHierarchy ?? false;
|
||||
set => UIRoot?.SetActive(value);
|
||||
get => UIRoot && UIRoot.activeInHierarchy;
|
||||
set { if (UIRoot) UIRoot.SetActive(value); }
|
||||
}
|
||||
|
||||
public abstract void ConstructUI(GameObject parent);
|
||||
|
Reference in New Issue
Block a user