Class ScaleOffsetColorTheme
Theme Engine to control initialized GameObject's scale, local position offset, and color based on state changes
For color, will try to set on first available text object in order of TextMesh, Text, TextMeshPro, and TextMeshProUGUI
If none found, then Theme will target first Renderer component available and target the associated shader property found in ThemeDefinition
Inheritance
ScaleOffsetColorTheme
Assembly: cs.temp.dll.dll
public class ScaleOffsetColorTheme : InteractableColorTheme
Constructors
Declaration
public ScaleOffsetColorTheme()
Declaration
public ScaleOffsetColorTheme()
Fields
Declaration
protected Transform hostTransform
Field Value
Type |
Description |
Transform |
|
Declaration
protected Transform hostTransform
Field Value
Type |
Description |
Transform |
|
Declaration
protected Vector3 originalPosition
Field Value
Declaration
protected Vector3 originalPosition
Field Value
Declaration
protected Vector3 originalScale
Field Value
Declaration
protected Vector3 originalScale
Field Value
Methods
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Returns
Overrides
Declaration
public override ThemePropertyValue GetProperty(ThemeStateProperty property)
Parameters
Returns
Overrides
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Overrides
Declaration
public override void Init(GameObject host, ThemeDefinition settings)
Parameters
Overrides
Declaration
public override void Reset()
Overrides
Declaration
public override void SetValue(ThemeStateProperty property, int index, float percentage)
Parameters
Overrides
Declaration
public override void SetValue(ThemeStateProperty property, int index, float percentage)
Parameters
Overrides