編集

次の方法で共有


BaseInteractiveElement.GetStateEvents<T>(String) Method

Definition

Get the events associated with a state given the type and the state name.

If the state to retrieve is a CoreInteractionState: The type name of a state's event configuration is the state name + "Events". For example, Touch state's event configuration is named TouchEvents. The Focus state's event configuration is named FocusEvents.

If the state is not a CoreInteractionState: The type is most likely StateEvents. The StateEvents type is the default type of a new state that is not a core state.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::Experimental::InteractiveElement::BaseInteractionEventConfiguration T GetStateEvents(System::String ^ stateName);
public T GetStateEvents<T> (string stateName) where T : Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseInteractionEventConfiguration;
member this.GetStateEvents : string -> 'T (requires 'T :> Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseInteractionEventConfiguration)
Public Function GetStateEvents(Of T As BaseInteractionEventConfiguration) (stateName As String) As T

Type Parameters

T

The type of the event configuration for the state

Parameters

stateName
String

The name of the state

Returns

T

The event configuration of a state

Applies to