mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
safer UIRoot visibility check
This commit is contained in:
1 parent
f89455549e
commit
8ef6df043c
1 file changed
+2
-2
@@ -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