Edit

Bagikan melalui


IMixedRealityEventSystem.UnregisterHandler<T> Method

Definition

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

Remarks

If a single C# object listens to global input events for several event handling interfaces, you must call this function for each interface type.

Applies to