Class ShaderColorStateAnimatableProperty
The ShaderColor animatable property adds/sets keyframes for a defined shader property of type Color in an animation clip.
Inheritance
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Experimental.StateVisualizer
Assembly: cs.temp.dll.dll
Syntax
public class ShaderColorStateAnimatableProperty : ShaderStateAnimatableProperty, IStateAnimatableProperty
Constructors
ShaderColorStateAnimatableProperty()
Constructor for a Shader Color Animatable Property. Sets the default AnimatablePropertyName.
Declaration
public ShaderColorStateAnimatableProperty()
Properties
ShaderPropertyColorValue
The color value of the given shader property. This color value refers to a shader property of type Color and not the main color of the material.
Declaration
public Color ShaderPropertyColorValue { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
RemoveKeyFrames(AnimationClip)
Removes the keyframes in an animation clip.
Declaration
public override void RemoveKeyFrames(AnimationClip animationClip)
Parameters
Type | Name | Description |
---|---|---|
Animation |
animationClip | The animation clip for keyframe removal |
Overrides
SetKeyFrames(AnimationClip)
Sets the keyframes in an animation clip based on the values of the animatable properties.
Declaration
public override void SetKeyFrames(AnimationClip animationClip)
Parameters
Type | Name | Description |
---|---|---|
Animation |
animationClip | The animation clip to add keyframes to |