Class InteractableShaderTheme
Inheritance
InteractableShaderTheme
Assembly: cs.temp.dll.dll
public class InteractableShaderTheme : InteractableThemeBase
Constructors
Declaration
public InteractableShaderTheme()
Fields
Declaration
protected MaterialPropertyBlock propertyBlock
Field Value
Type |
Description |
MaterialPropertyBlock |
|
Declaration
protected Renderer renderer
Field Value
Type |
Description |
Renderer |
|
Declaration
protected List<ShaderProperties> shaderProperties
Field Value
Methods
Declaration
public static Color GetColor(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
Declaration
public static float GetFloat(GameObject host, int propId)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
Int32 |
propId |
|
Returns
Declaration
public override InteractableThemePropertyValue GetProperty(InteractableThemeProperty property)
Parameters
Returns
Overrides
Declaration
public override void Init(GameObject host, InteractableThemePropertySettings settings)
Parameters
Overrides
Declaration
public static MaterialPropertyBlock SetColor(MaterialPropertyBlock block, Color color, int propId)
Parameters
Type |
Name |
Description |
MaterialPropertyBlock |
block |
|
Color |
color |
|
Int32 |
propId |
|
Returns
Type |
Description |
MaterialPropertyBlock |
|
Declaration
public static MaterialPropertyBlock SetFloat(MaterialPropertyBlock block, float value, int propId)
Parameters
Type |
Name |
Description |
MaterialPropertyBlock |
block |
|
Single |
value |
|
Int32 |
propId |
|
Returns
Type |
Description |
MaterialPropertyBlock |
|
Declaration
public static void SetPropertyBlock(GameObject host, MaterialPropertyBlock block)
Parameters
Type |
Name |
Description |
GameObject |
host |
|
MaterialPropertyBlock |
block |
|
Declaration
public override void SetValue(InteractableThemeProperty property, int index, float percentage)
Parameters
Overrides