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.
- Listed in Networking and servers
- Inherits or implements
AnimatedValue<float> - Derived types
AnimatedLayerWeightLerp
Constructors
| Member | What it is |
|---|---|
AnimatedLayerWeight(string name) | Creates an AnimatedLayerWeight from name. |
Fields
| Member | What it is |
|---|---|
protected float precision | Precision used when sending the weight (default 0.01). |
Methods
| Member | What 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: