Method HideDialogs
HideDialogs(VisualElement?, Type?)
Hides all instances of SimplePopupDialog within the specified container.
public static void HideDialogs(VisualElement? container, Type? noHide = null)
Parameters
containerVisualElementThe VisualElement that contains the dialogs to be hidden.
noHideTypeThe type of dialog which will not be hidden.
Remarks
This method searches the provided container for all views of type SimplePopupDialog and hides them. It is typically used to manage the visibility of popup dialogs in a UI.