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