Tanoda
IInterpolator.cs
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) Ultraleap, Inc. 2011-2020. *
3 * *
4 * Use subject to the terms of the Apache License 2.0 available at *
5 * http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6 * between Ultraleap and you, your company or other organization. *
7 ******************************************************************************/
8
9using System;
10
11namespace Leap.Unity.Animation {
12
16 public interface IInterpolator : IPoolable, IDisposable {
17
22 void Interpolate(float percent);
23
33 float length { get; }
34
39 bool isValid { get; }
40 }
41}
Implement this interface to add your own interpolators to Tween!
bool isValid
Returns whether or not this interpolator is currently considered valid. Any invalid interpolators wil...
void Interpolate(float percent)
Called to trigger the interpolation of this interpolator. Use this callback to do whatever work your ...
float length
Returns the 'length' of this interpolator, in whatever units make sense for this interpolator....
Implement this interface to recieve a callback whenever your object is spawned from a pool.
Definition: Pool.cs:19