BaseEventSystem.UnregisterHandler<T>(IEventSystemHandler) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Unregisters the given handler as a global listener for all events handled via the T interface. T must be an interface type, not a class type, derived from IEventSystemHandler.
public:
generic <typename T>
where T : UnityEngine::EventSystems::IEventSystemHandler virtual void UnregisterHandler(UnityEngine::EventSystems::IEventSystemHandler ^ handler);
public virtual void UnregisterHandler<T> (UnityEngine.EventSystems.IEventSystemHandler handler) where T : UnityEngine.EventSystems.IEventSystemHandler;
abstract member UnregisterHandler : UnityEngine.EventSystems.IEventSystemHandler -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
override this.UnregisterHandler : UnityEngine.EventSystems.IEventSystemHandler -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
Public Overridable Sub UnregisterHandler(Of T As IEventSystemHandler) (handler As IEventSystemHandler)
Type Parameters
- T
Parameters
- handler
- UnityEngine.EventSystems.IEventSystemHandler
Handler to stop receiving global input events of specified handler type.