Skip to content

When weight of animator layer is set to 0, layer weight is not synchronized in NetworkAnimator #2663

@chromee

Description

@chromee

Description

It appears that NetworkAnimator is updating the layer weights at the same time as the AnimationState is updated. However, if the layer weight is set to 0, it seems to stop updating that entire layer. Therefore, if we set the layer weights to 0, NetworkAnimator will not be able to synchronize the layer weights. perhaps the State will also be out of sync ?

Reproduce Steps

  1. Create an AnimatorController with two layers
  2. Set the NetworkAnimator to its AnimatorController
  3. Play and set the layer weight to 0 in the Animator window (do not use the slider, enter 0 directly).

Actual Outcome

Layer weights are not synchronized

Expected Outcome

Layer weights are synchronized

Screenshots

layer.weight.mp4

Environment

  • OS: Windows 11
  • Unity Version: 2022.3.7f1
  • Netcode Version: 1.5.2

Additional Context

Metadata

Metadata

Labels

priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions