Tanoda
Leap.Unity.Animation.Internal.GradientInterpolatorBase Class Referenceabstract
Inheritance diagram for Leap.Unity.Animation.Internal.GradientInterpolatorBase:
Leap.Unity.Animation.IInterpolator Leap.Unity.IPoolable

Public Member Functions

GradientInterpolatorBase Init (Gradient gradient)
 
abstract 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...
 
void OnSpawn ()
 
void Dispose ()
 
void OnRecycle ()
 
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...
 
void OnSpawn ()
 
void OnRecycle ()
 

Protected Attributes

Gradient _gradient
 

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...
 
abstract bool isValid [get]
 Returns whether or not this interpolator is currently considered valid. Any invalid interpolators will be removed from a tween. More...
 
- Properties inherited from Leap.Unity.Animation.IInterpolator
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

Definition at line 128 of file InterpolatorBases.cs.

Member Function Documentation

◆ Dispose()

void Leap.Unity.Animation.Internal.GradientInterpolatorBase.Dispose ( )

Definition at line 144 of file InterpolatorBases.cs.

◆ Init()

GradientInterpolatorBase Leap.Unity.Animation.Internal.GradientInterpolatorBase.Init ( Gradient  gradient)

Definition at line 132 of file InterpolatorBases.cs.

◆ Interpolate()

abstract void Leap.Unity.Animation.Internal.GradientInterpolatorBase.Interpolate ( float  percent)
pure virtual

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

Implements Leap.Unity.Animation.IInterpolator.

◆ OnRecycle()

void Leap.Unity.Animation.Internal.GradientInterpolatorBase.OnRecycle ( )

Implements Leap.Unity.IPoolable.

Definition at line 146 of file InterpolatorBases.cs.

◆ OnSpawn()

void Leap.Unity.Animation.Internal.GradientInterpolatorBase.OnSpawn ( )

Implements Leap.Unity.IPoolable.

Definition at line 142 of file InterpolatorBases.cs.

Member Data Documentation

◆ _gradient

Gradient Leap.Unity.Animation.Internal.GradientInterpolatorBase._gradient
protected

Definition at line 130 of file InterpolatorBases.cs.

Property Documentation

◆ isValid

abstract bool Leap.Unity.Animation.Internal.GradientInterpolatorBase.isValid
get

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

Implements Leap.Unity.Animation.IInterpolator.

Definition at line 140 of file InterpolatorBases.cs.

◆ length

float Leap.Unity.Animation.Internal.GradientInterpolatorBase.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.

Implements Leap.Unity.Animation.IInterpolator.

Definition at line 137 of file InterpolatorBases.cs.


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