跳到主要内容

Class UIContainer

Represents a UI element container.

Events

onShowed

public event Action onShowed;

onHidden

public event Action onHidden;

Properties

closed

Is this winS.Unity.Modules.UI.UIContainer closed?

public bool closed { get; internal set; }

hiding

Is this winS.Unity.Modules.UI.UIContainer hiding?

public bool hiding { get; internal set; }

parent

parent of this winS.Unity.Modules.UI.UIContainer.

public UIContainer parent { get; internal set; }

hideWhenClose

Indicates whether the container should be hidden before closing.

protected virtual bool hideWhenClose { get; }

Methods

Show()

public Task Show()

Hide()

public Task Hide()

HideImmediately()

public void HideImmediately()

Close()

public virtual Task Close()

WaitUntilHidden()

public Task WaitUntilHidden()

OpenControl<T>()

public Task<T> OpenControl<T>()

OpenControl<T>(string controlPath)

public Task<T> OpenControl<T>(string controlPath)

OpenControl<T>(GameObject controlGameObject)

public Task<T> OpenControl<T>(GameObject controlGameObject)

OpenControlAndHide<T>()

public Task<T> OpenControlAndHide<T>()

OpenControlAndHide<T>(string controlPath)

public Task<T> OpenControlAndHide<T>(string controlPath)

OpenControlAndHide<T>(GameObject controlGameObject)

public Task<T> OpenControlAndHide<T>(GameObject controlGameObject)

OpenControlByClone<T>(GameObject controlGameObject)

public Task<T> OpenControlByClone<T>(GameObject controlGameObject)

OpenControlByClone<T>(GameObject controlGameObject, Transform parent)

public Task<T> OpenControlByClone<T>(GameObject controlGameObject, Transform parent)

OpenControlByCloneAndHide<T>(GameObject controlGameObject)

public Task<T> OpenControlByCloneAndHide<T>(GameObject controlGameObject)

OpenControlByCloneAndHide<T>(GameObject controlGameObject, Transform parent)

public Task<T> OpenControlByCloneAndHide<T>(GameObject controlGameObject, Transform parent)

GetComponentsInChildren<T>()

Get all components of type T in gameObject.

protected T[] GetComponentsInChildren<T>()

GetComponentsInChildren<T>(List<T> results)

Get all components of type T in gameObject.

protected void GetComponentsInChildren<T>(List<T> results)

GetComponentsInChildrenByPath<T>(string path)

Get all components of type T in sub-object with path.

protected T[] GetComponentsInChildrenByPath<T>(string path)

RegisterPointerExitEvent(GameObject gameObject, Action<PointerEventData> callback)

protected void RegisterPointerExitEvent(GameObject gameObject, Action<PointerEventData> callback)

RegisterPointerExitEvent(RectTransform rectTransform, Action<PointerEventData> callback)

protected void RegisterPointerExitEvent(RectTransform rectTransform, Action<PointerEventData> callback)

RegisterPointerEnterEvent(GameObject gameObject, Action<PointerEventData> callback)

protected void RegisterPointerEnterEvent(GameObject gameObject, Action<PointerEventData> callback)

RegisterPointerEnterEvent(RectTransform rectTransform, Action<PointerEventData> callback)

protected void RegisterPointerEnterEvent(RectTransform rectTransform, Action<PointerEventData> callback)

RegisterPointerClickEvent(GameObject gameObject, Action<PointerEventData> callback)

protected void RegisterPointerClickEvent(GameObject gameObject, Action<PointerEventData> callback)

RegisterPointerClickEvent(RectTransform rectTransform, Action<PointerEventData> callback)

protected void RegisterPointerClickEvent(RectTransform rectTransform, Action<PointerEventData> callback)