Modifier

Partager via


StateManager.AddNewStateWithCustomEventConfiguration Method

Definition

Create and add a new state given the state name and the associated existing event configuration.

public:
 Microsoft::MixedReality::Toolkit::Experimental::InteractiveElement::InteractionState ^ AddNewStateWithCustomEventConfiguration(System::String ^ stateName, Microsoft::MixedReality::Toolkit::Experimental::InteractiveElement::BaseInteractionEventConfiguration ^ eventConfiguration);
public Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.InteractionState AddNewStateWithCustomEventConfiguration (string stateName, Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseInteractionEventConfiguration eventConfiguration);
member this.AddNewStateWithCustomEventConfiguration : string * Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.BaseInteractionEventConfiguration -> Microsoft.MixedReality.Toolkit.Experimental.InteractiveElement.InteractionState
Public Function AddNewStateWithCustomEventConfiguration (stateName As String, eventConfiguration As BaseInteractionEventConfiguration) As InteractionState

Parameters

stateName
String

The name of the state to create

eventConfiguration
BaseInteractionEventConfiguration

The existing event configuration for the new state

Returns

The new state added

Applies to