Class ColorPropertyMotion
- Namespace
- FriedSynapse.FlowEnt.Motions.Tween.Materials
Lerps the color for the specified shader property.
public class ColorPropertyMotion : AbstractColorMotion<MaterialBuilderWithProperty<Color>>, ITweenMotion, IMotion, IObjectMotion
- Inheritance
-
ColorPropertyMotion
- Implements
- Inherited Members
- Extension Methods
Constructors
ColorPropertyMotion(Material, int, Color)
public ColorPropertyMotion(Material item, int propertyId, Color value)
Parameters
itemMaterialpropertyIdintvalueColor
ColorPropertyMotion(Material, int, Color?, Color)
public ColorPropertyMotion(Material item, int propertyId, Color? from, Color to)
Parameters
itemMaterialpropertyIdintfromColor?toColor
ColorPropertyMotion(Material, string, Color)
public ColorPropertyMotion(Material item, string propertyName, Color value)
Parameters
itemMaterialpropertyNamestringvalueColor
ColorPropertyMotion(Material, string, Color?, Color)
public ColorPropertyMotion(Material item, string propertyName, Color? from, Color to)
Parameters
itemMaterialpropertyNamestringfromColor?toColor
Methods
GetFrom()
protected override Color GetFrom()
Returns
- Color
SetValue(Color)
protected override void SetValue(Color value)
Parameters
valueColor