Class AudioAffordanceTheme
Audio clip affordance theme.
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.AffordanceSystem .Theme.Audio
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Serializable]
public class AudioAffordanceTheme
Remarks
It does not support state tweening so it is simplified and does not inherit from Base
Constructors
AudioAffordanceTheme()
Initializes and returns an instance of Audio
Declaration
protected AudioAffordanceTheme()
Methods
GetAffordanceThemeDataForIndex(byte)
Gets the affordance theme data for the affordance state.
Declaration
public AudioAffordanceThemeData GetAffordanceThemeDataForIndex(byte stateIndex)
Parameters
Type | Name | Description |
---|---|---|
byte | stateIndex | The affordance state index to get the theme data for. |
Returns
Type | Description |
---|---|
Audio |
Returns the affordance theme data for the affordance state, or null if there is no theme data associated with the state. |