-
Notifications
You must be signed in to change notification settings - Fork 450
fix: NetworkAnimator not synchronizing changes to layer weights #2399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: NetworkAnimator not synchronizing changes to layer weights #2399
Conversation
Adding small manual test adjustment to verify the change in a layer weight is synchronized.
…nges-in-layer-weights
private void LateUpdate() | ||
{ | ||
|
||
if (!IsSpawned || !IsOwner) | ||
{ | ||
if (!IsOwner && IsSpawned) | ||
{ | ||
if (Input.GetKeyDown(KeyCode.Alpha4)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like debug code maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is part of the manual test that just allows you to verify that when changes are applied to a layer's weight that it was updated on other non-authoritative/owner instances.
@@ -229,6 +243,10 @@ private void LateUpdate() | |||
BeginAttack(2); | |||
} | |||
|
|||
if (Input.GetKeyDown(KeyCode.Alpha3)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is part of the manual test that just allows you to verify that when changes are applied to a layer's weight that it was updated on other non-authoritative/owner instances.
This resolves the issue where layer weights were not being updated unless a state transition was occurring.
MTT-5389
Changelog
Testing and Documentation