Skip to content

TypeLerp class

Registry of interpolation functions keyed by CLR type, used to animate property values.

public static class TypeLerp
name description
static CanLerp(…) Returns true if the type has a registered lerp function.
static Interpolate(…) Interpolates between two boxed values; returns to when no function is registered for the type.
static Register<T>(…) Registers the interpolation function for T, replacing any earlier one.