Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimBool

Namespace: UnityEditor.AnimatedValues

Description

Lerp from 0 - 1.

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

Variables

fadedRetuns the float value of the tween.

Constructors

AnimBoolConstructor.

Functions

FadeReturns a value between from and to depending on the current value of the bools animation.