Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


BaseAnimValue<T>

Abstract base class for Animated Values.
Read time 1 minuteLast updated 4 days ago

Definition

public abstract class BaseAnimValue<T> : ISerializationCallbackReceiver

Remarks

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.

Fields

Value

Description

speedSpeed of the tween.
valueChangedCallback while the value is changing.

Properties

Property

Description

isAnimatingIs the value currently animating.
targetTarget to tween towards.
valueCurrent value of the animation.

Methods

Method

Description

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.