AnimBool
Lerp from 0 - 1.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEditor.AnimatedValues
- Assembly: UnityEditor.CoreModule
- Inherits from: BaseAnimValueNonAlloc<bool>
- Implements: ISerializationCallbackReceiver
public class AnimBool : BaseAnimValueNonAlloc<bool>, ISerializationCallbackReceiver
Remarks
When value is 0 returns false, when value > 0.5 returns true. Animated using Mathf.Lerp.
Constructors
Constructor | Description |
|---|---|
| AnimBool() | Constructor. |
| AnimBool(System.Boolean) | Constructor. |
| AnimBool(System.Boolean,UnityEngine.Events.UnityAction) | Constructor. |
| AnimBool(UnityEngine.Events.UnityAction) | Constructor. |
Properties
Property | Description |
|---|---|
| faded | Retuns the float value of the tween. |
Methods
Method | Description |
|---|---|
| Fade | Returns a value between from and to depending on the current value of the bools animation. |
| GetValue | Type specific implementation of BaseAnimValue<T>.GetValue(). |