Skip to main content

AnimatedLayerWeight

A class in Root.Township, Alta.Networking.Animation.

A networked Animator layer weight, synced as a 0 to 1 float. Set up by NetworkAnimator.

Constructors​

MemberWhat it is
AnimatedLayerWeight(string name)Creates an AnimatedLayerWeight from name.

Fields​

MemberWhat it is
protected float precisionPrecision used when sending the weight (default 0.01).

Methods​

MemberWhat it is
override void Initialize(NetworkAnimator animator, int index)Binds to the animator layer and reads its current weight.
protected override void Serialize(Stream stream)Writes or reads the weight with precision; clients apply it to the animator on read.
protected override void Update()Applies the weight to the animator layer.

Used in​

Members of other types that take, return or hold a AnimatedLayerWeight: