UnregisterCallback
Remove callback from the instance.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
UnregisterCallback<T>(EventCallback<T>, TrickleDown)
Remove callback from the instance.
public void UnregisterCallback<TEventType>(EventCallback<TEventType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
Parameters
The callback to remove. If this callback was never registered, nothing happens.
Set this parameter to true to remove the callback from the TrickleDown phase. Set this parameter to false to remove the callback from the BubbleUp phase.
UnregisterCallback<T, U>(EventCallback<T, T>, TrickleDown)
Remove callback from the instance.
public void UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType> callback, TrickleDown useTrickleDown = TrickleDown.NoTrickleDown) where TEventType : EventBase<TEventType>, new()
Parameters
The callback to remove. If this callback was never registered, nothing happens.
Set this parameter to true to remove the callback from the TrickleDown phase. Set this parameter to false to remove the callback from the BubbleUp phase.