編輯

共用方式為


IMixedRealityEventSystem.RegisterHandler<T>(IEventSystemHandler) Method

Definition

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 void RegisterHandler(UnityEngine::EventSystems::IEventSystemHandler ^ handler);
public void RegisterHandler<T> (UnityEngine.EventSystems.IEventSystemHandler handler) where T : UnityEngine.EventSystems.IEventSystemHandler;
abstract member RegisterHandler : UnityEngine.EventSystems.IEventSystemHandler -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
Public 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.

Remarks

If you want to register a single C# object as global handler for several event handling interfaces, you must call this function for each interface type.

Applies to