Table of Contents

Class BaseEase

Namespace
UILib.Animations
Assembly
UILib.dll

The base class of all "ease" behaviours.

Eases between two values, supports reversing, and different curves for easing in/out.

public abstract class BaseEase : BaseTimer
Inheritance
Object
Component
Behaviour
MonoBehaviour
BaseEase
Derived
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.Internal_CancelInvokeAll(MonoBehaviour)
MonoBehaviour.Internal_IsInvokingAll(MonoBehaviour)
MonoBehaviour.IsObjectMonoBehaviour(Object)
MonoBehaviour.StopCoroutineManaged(Coroutine)
MonoBehaviour.GetScriptClassName()
MonoBehaviour.useGUILayout
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.m_CachedPtr
Object.OffsetOfInstanceIDInCPlusPlusObject
Object.objectIsNullMessage
Object.cloneDestroyedMessage
Object.GetInstanceID()
Object.GetHashCode()
Object.CompareBaseObjects(Object, Object)
Object.EnsureRunningOnMainThread()
Object.IsNativeObjectAlive(Object)
Object.GetCachedPtr()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.GetOffsetOfInstanceIDInCPlusPlusObject()
Object.CurrentThreadIsMainThread()
Object.Internal_CloneSingle(Object)
Object.Internal_InstantiateSingle(Object, Vector3, Quaternion)
Object.Internal_InstantiateSingleWithParent(Object, Transform, Vector3, Quaternion)
Object.ToString(Object)
Object.GetName(Object)
Object.IsPersistent(Object)
Object.Internal_InstantiateSingle_Injected(Object, ref Vector3, ref Quaternion)
Object.Internal_InstantiateSingleWithParent_Injected(Object, Transform, ref Vector3, ref Quaternion)
Object.name
Object.hideFlags

Properties

easeFunction

The easing function this ease will use. This is unset by default and will be treated as a linear function.

public Func<float, float> easeFunction { get; }

Property Value

Func<float, float>

easingIn

Whether this behaviour is currently easing in.

public bool easingIn { get; }

Property Value

bool

easingOut

Whether this behaviour is currently easing out.

public bool easingOut { get; }

Property Value

bool

maxValue

The maximum value.

public float maxValue { get; }

Property Value

float

minValue

The minimum value.

public float minValue { get; }

Property Value

float

value

The current value.

public float value { get; }

Property Value

float

Methods

EaseIn(bool)

Eases in, heading towards the maxValue.

public void EaseIn(bool force = false)

Parameters

force bool

Whether to force easing in

EaseOut(bool)

Eases out, heading towards the minValue.

public void EaseOut(bool force = false)

Parameters

force bool

Whether to force easing in

OnEaseIn()

Runs when easing in has finished.

protected virtual void OnEaseIn()

OnEaseOut()

Runs when easing out has finished.

protected virtual void OnEaseOut()

OnEnd()

Runs when this behaviour finishes easing in/out.

protected override void OnEnd()

OnIter(float)

Runs on each iteration of easing.

protected override void OnIter(float time)

Parameters

time float

The current value of the internal timer

SetEaseFunction(Func<float, float>)

Sets the easing function this behaviour will use.

The easing function must accept a float between 0 and 1 (inclusive).

The function must also return a float between 0 and 1 (inclusive).

Providing an easeFunction of null is equivalent to using a linear easing function.

public void SetEaseFunction(Func<float, float> easeFunction)

Parameters

easeFunction Func<float, float>

The ease function to use

_SetValue(float)

Sets the current value.

This is clamped between minValue and maxValue.

This is called in OnIter(float) to update the current easing value.

protected virtual void _SetValue(float value)

Parameters

value float

The value to set

_SetValues(float, float)

Sets the minimum and maximum values to ease between.

protected void _SetValues(float minValue, float maxValue)

Parameters

minValue float

The minimum value to use

maxValue float

The maximum value to use