Tanoda
Leap.Unity.Animation.IInterpolator Interface Reference

Implement this interface to add your own interpolators to Tween! More...

Inheritance diagram for Leap.Unity.Animation.IInterpolator:
Leap.Unity.IPoolable Leap.Unity.Animation.Internal.GradientInterpolatorBase Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >

Public Member Functions

void Interpolate (float percent)
 Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your interpolator needs to do. More...
 
- Public Member Functions inherited from Leap.Unity.IPoolable
void OnSpawn ()
 
void OnRecycle ()
 

Properties

float length [get]
 Returns the 'length' of this interpolator, in whatever units make sense for this interpolator. If you are interpolating from one point to another, you would return the distance between the points. More...
 
bool isValid [get]
 Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween. More...
 

Detailed Description

Implement this interface to add your own interpolators to Tween!

Definition at line 16 of file IInterpolator.cs.

Member Function Documentation

◆ Interpolate()

void Leap.Unity.Animation.IInterpolator.Interpolate ( float  percent)

Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your interpolator needs to do.

Implemented in Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >, and Leap.Unity.Animation.Internal.GradientInterpolatorBase.

Property Documentation

◆ isValid

bool Leap.Unity.Animation.IInterpolator.isValid
get

Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween.

Implemented in Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >, and Leap.Unity.Animation.Internal.GradientInterpolatorBase.

Definition at line 39 of file IInterpolator.cs.

◆ length

float Leap.Unity.Animation.IInterpolator.length
get

Returns the 'length' of this interpolator, in whatever units make sense for this interpolator. If you are interpolating from one point to another, you would return the distance between the points.

The only current use of this function is to drive the Tween.AtRate function.

Implemented in Leap.Unity.Animation.Internal.InterpolatorBase< ValueType, ObjType >, and Leap.Unity.Animation.Internal.GradientInterpolatorBase.

Definition at line 33 of file IInterpolator.cs.


The documentation for this interface was generated from the following file: