This commit is contained in:
CortexCore
2025-01-12 11:13:19 +08:00
parent 01e7e4e35e
commit 01b3d1be43
26 changed files with 387 additions and 336 deletions

View File

@@ -102,7 +102,16 @@ namespace BITKit
handle.VisualElement.RemoveFromHierarchy();
_visibleHandle.RemoveElement(handle);
}
_visibleHandle.Invoke();
try
{
_visibleHandle.Invoke();
}
catch (Exception e)
{
Debug.LogException(e);
}
}
public override async UniTask InitializeAsync()
@@ -116,6 +125,8 @@ namespace BITKit
UXUtils.Inject(this);
_container.Clear();
_visibleHandle.Invoke();
_initializationState = InitializationState.Initialized;
}