StateManager.AddNewStateWithCustomEventConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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