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
-
ObjectComponentBehaviourMonoBehaviourBaseEase
- 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.useGUILayoutBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.m_CachedPtrObject.OffsetOfInstanceIDInCPlusPlusObjectObject.objectIsNullMessageObject.cloneDestroyedMessageObject.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.nameObject.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
easingIn
Whether this behaviour is currently easing in.
public bool easingIn { get; }
Property Value
easingOut
Whether this behaviour is currently easing out.
public bool easingOut { get; }
Property Value
maxValue
The maximum value.
public float maxValue { get; }
Property Value
minValue
The minimum value.
public float minValue { get; }
Property Value
value
The current value.
public float value { get; }
Property Value
Methods
EaseIn(bool)
Eases in, heading towards the maxValue.
public void EaseIn(bool force = false)
Parameters
forceboolWhether to force easing in
EaseOut(bool)
Eases out, heading towards the minValue.
public void EaseOut(bool force = false)
Parameters
forceboolWhether 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
timefloatThe 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
_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
valuefloatThe value to set
_SetValues(float, float)
Sets the minimum and maximum values to ease between.
protected void _SetValues(float minValue, float maxValue)