Class InteractableAudioTheme
Theme Engine to play particular audio files based on state changes. Add AudioSource component if none is found on initialized GameObject or in children
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableAudioTheme : InteractableThemeBase
Constructors
InteractableAudioTheme()
Declaration
public InteractableAudioTheme()
Properties
IsEasingSupported
Indicates whether the current Theme engine implementation supports easing between state values
Declaration
public override bool IsEasingSupported { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Methods
GetDefaultThemeDefinition()
Generates the default theme definition configuration for the current theme implementation
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Type | Description |
---|---|
ThemeDefinition | Default ThemeDefinition to initialize with the current theme engine implementation |
Overrides
GetProperty(ThemeStateProperty)
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Type | Name | Description |
---|---|---|
ThemeStateProperty | property |
Returns
Type | Description |
---|---|
ThemePropertyValue |
Overrides
Init(GameObject, ThemeDefinition)
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Type | Name | Description |
---|---|---|
GameObject | host | |
ThemeDefinition | settings |
Overrides
SetValue(ThemeStateProperty, ThemePropertyValue)
Instruct theme to set value for current property with ThemePropertyValue value provided
Declaration
protected override void SetValue(ThemeStateProperty property, ThemePropertyValue value)
Parameters
Type | Name | Description |
---|---|---|
ThemeStateProperty | property | property to update value |
ThemePropertyValue | value | Value for theme to set |
Overrides
SetValue(ThemeStateProperty, Int32, Single)
Instruct theme to set value for current property with given index state and at given lerp percentage
Declaration
public override void SetValue(ThemeStateProperty property, int index, float percentage)
Parameters
Type | Name | Description |
---|---|---|
ThemeStateProperty | property | property to update value |
Int32 | index | index of state to access array of values |
Single | percentage | percentage transition between values |