Class InteractableAnimatorTheme
ThemeEngine that controls Animator state based on state changes Targets first Animator component returned on initialized GameObject
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableAnimatorTheme : InteractableThemeBase
Constructors
InteractableAnimatorTheme()
Declaration
public InteractableAnimatorTheme()
Methods
GetDefaultThemeDefinition()
Generates the default theme definition configuration for the current theme implementation
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Type | Description |
---|---|
Theme |
Default ThemeDefinition to initialize with the current theme engine implementation |
Overrides
GetProperty(ThemeStateProperty)
Get the current property value for the provided state property
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Type | Name | Description |
---|---|---|
Theme |
property | state property to access |
Returns
Type | Description |
---|---|
Theme |
Value currently for given state property |
Overrides
Init(GameObject, ThemeDefinition)
Initialize current Theme Engine with given configuration and target the provided GameObject
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Type | Name | Description |
---|---|---|
Game |
host | GameObject to target changes against |
Theme |
settings |
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 |
---|---|---|
Theme |
property | property to update value |
Int32 | index | index of state to access array of values |
Single | percentage | percentage transition between values |