BaseEventSystem.RegisterHandler<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.
Registers 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 RegisterHandler(UnityEngine::EventSystems::IEventSystemHandler ^ handler);
public virtual void RegisterHandler<T> (UnityEngine.EventSystems.IEventSystemHandler handler) where T : UnityEngine.EventSystems.IEventSystemHandler;
abstract member RegisterHandler : UnityEngine.EventSystems.IEventSystemHandler -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
override this.RegisterHandler : UnityEngine.EventSystems.IEventSystemHandler -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
Public Overridable Sub RegisterHandler(Of T As IEventSystemHandler) (handler As IEventSystemHandler)
Type Parameters
- T
Parameters
- handler
- UnityEngine.EventSystems.IEventSystemHandler
Handler to receive global input events of specified handler type.