Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

BaseAnimValue<T0>

class in UnityEditor.AnimatedValues

Description

Abstract base class for Animated Values.

Animated Values are an editor only concept for values that have a current value and a target. The value will tween towards the target at a given speed.

Variables

isAnimatingIs the value currently animating.
speedSpeed of the tween.
targetTarget to tween towards.
valueCurrent value of the animation.
valueChangedCallback while the value is changing.

Protected Functions

BeginAnimatingBegin an animation moving from the start value to the target value.
GetValueAbstract function to be overridden in derived types. Should return the current value of the animated value.
StopAnimStop the animation and assign the given value.

Did you find this page useful? Please give it a rating: