Class InteractableShaderTheme
Theme Engine to control the value of a particular Shader Property based on state changes
Targets the first Renderer component on the initialized GameObject and use MaterialPropertyBlocks
Inheritance
InteractableShaderTheme
Assembly: cs.temp.dll.dll
public class InteractableShaderTheme : InteractableThemeBase
Constructors
Declaration
public InteractableShaderTheme()
Declaration
public InteractableShaderTheme()
Fields
Declaration
protected const string DefaultShaderProperty = "_Color"
Field Value
Declaration
protected const string DefaultShaderProperty = "_Color"
Field Value
Declaration
protected MaterialPropertyBlock propertyBlock
Field Value
Type |
Description |
MaterialPropertyBlock |
|
Declaration
protected MaterialPropertyBlock propertyBlock
Field Value
Type |
Description |
MaterialPropertyBlock |
|
Declaration
protected Renderer renderer
Field Value
Type |
Description |
Renderer |
|
Declaration
protected Renderer renderer
Field Value
Type |
Description |
Renderer |
|
Declaration
protected List<ThemeStateProperty> shaderProperties
Field Value
Declaration
protected List<ThemeStateProperty> shaderProperties
Field Value
Properties
Declaration
public override bool AreShadersSupported { get; }
Property Value
Overrides
Declaration
public override bool AreShadersSupported { get; }
Property Value
Overrides
Methods
Declaration
[Obsolete("GetColor is no longer supported. Access the material block directly on the GameObject provided.")]
public static Color GetColor(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
Declaration
[Obsolete("GetColor is no longer supported. Access the material block directly on the GameObject provided.")]
public static Color GetColor(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
public override ThemeDefinition GetDefaultThemeDefinition()
Returns
Overrides
Declaration
[Obsolete("GetFloat is no longer supported. Access the material block directly on the GameObject provided.")]
public static float GetFloat(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
Declaration
[Obsolete("GetFloat is no longer supported. Access the material block directly on the GameObject provided.")]
public static float GetFloat(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
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 definition)
Parameters
Overrides
Declaration
public override void Init(GameObject host, ThemeDefinition definition)
Parameters
Overrides
Declaration
protected override void SetValue(ThemeStateProperty property, ThemePropertyValue value)
Parameters
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