Table of Contents

Class ColorPropertyMotion

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 Material
propertyId int
value Color

ColorPropertyMotion(Material, int, Color?, Color)

public ColorPropertyMotion(Material item, int propertyId, Color? from, Color to)

Parameters

item Material
propertyId int
from Color?
to Color

ColorPropertyMotion(Material, string, Color)

public ColorPropertyMotion(Material item, string propertyName, Color value)

Parameters

item Material
propertyName string
value Color

ColorPropertyMotion(Material, string, Color?, Color)

public ColorPropertyMotion(Material item, string propertyName, Color? from, Color to)

Parameters

item Material
propertyName string
from Color?
to Color

Methods

GetFrom()

protected override Color GetFrom()

Returns

Color

SetValue(Color)

protected override void SetValue(Color value)

Parameters

value Color