Editar

Compartir a través de


Interactable.AddReceiver<T> Method

Definition

Event receivers can be used to listen for different events at runtime. This method allows receivers to be dynamically added at runtime.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::UI::ReceiverBasegcnew() T AddReceiver();
public T AddReceiver<T> () where T : Microsoft.MixedReality.Toolkit.UI.ReceiverBase, new();
member this.AddReceiver : unit -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.UI.ReceiverBase and 'T : (new : unit -> 'T))
Public Function AddReceiver(Of T As {ReceiverBaseNew}) () As T

Type Parameters

T

Returns

T

The new event receiver

Applies to