Class AudioAffordanceTheme
Audio clip affordance theme.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.Audio
Syntax
[Serializable]
public class AudioAffordanceTheme
Remarks
It does not support state tweening so it is simplified and does not inherit from BaseAffordanceTheme<T>.
Constructors
AudioAffordanceTheme()
Initializes and returns an instance of AudioAffordanceTheme.
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 |
---|---|
AudioAffordanceThemeData | Returns the affordance theme data for the affordance state, or null if there is no theme data associated with the state. |