AnimBool

class in UnityEditor.AnimatedValues

/

Inherits from:AnimatedValues.BaseAnimValue_1

Switch to Manual

Description

从 0 到 1 的 lerp。

When value is 0 returns false, when value > 0.5 returns true. Animated using Mathf.Lerp.

Variables

faded返回补间的浮点值。

Constructors

AnimBool构造函数。

Public Functions

Fade根据布尔动画的当前值返回 from 和 to 之间的值。

Protected Functions

GetValueBaseAnimValue_1.GetValue 的类型特定实现。

Inherited members

Variables

isAnimating值当前正在动画化。
speed补间速度。
target补间目标。
value动画的当前值。
valueChanged当值发生更改时回调。

Protected Functions

BeginAnimating开始一个从起始值移动到目标值的动画。
StopAnim停止动画并分配给定值。