-
Notifications
You must be signed in to change notification settings - Fork 457
fix: NetworkAnimator does not allow disabling or enabling parameters for synch #3586
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
Draft
NoelStephensUnity
wants to merge
12
commits into
develop-2.0.0
Choose a base branch
from
fix/networkanimator-allow-disabling-or-enabling-parameter-synch
base: develop-2.0.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
fix: NetworkAnimator does not allow disabling or enabling parameters for synch #3586
NoelStephensUnity
wants to merge
12
commits into
develop-2.0.0
from
fix/networkanimator-allow-disabling-or-enabling-parameter-synch
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-or-enabling-parameter-synch
Work in progress.
…-or-enabling-parameter-synch
Renamed the new method `ToggleParameterSync` to `EnableParameterSynchronization`. Added overridden version of `EnableParameterSynchronization` that accepts a string for the name and changed the original method to accept the hash value of the parameter name. Did some minor clean up in the `NetworkAnimatorStateChangeHandler.NetworkUpdate` method. Added some additional comments in various places.
…er-synch' of https://github.com/Unity-Technologies/com.unity.netcode.gameobjects into fix/networkanimator-allow-disabling-or-enabling-parameter-synch
Reverted the change in HiddenScriptEditor. Moved away from a NetworkAnimator custom editor to a custom property drawer to handle displaying the Animator parameters to be synchronized. Handling the population of parameters and populating the NetworkAnimator.AnimatorParameterEntries during OnValidate. Had to re-apply unchecking the excluded parameter in some prefabs for testing purposes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses the primary issue of NetworkAnimator not providing a way to exclude specific parameters from synchronization to provide users the ability to handle the synchronization of the excluded parameters themselves or to handle them via a calculation performed on non-authority instances.
This PR also includes:
MTTB-1485
fix: #3530
Changelog
NetworkAnimator.AuthorityMode
which allows you to select whether theNetworkAnimator
will use a server or owner authority model for state updates (likeNetworkTransform
).Animator
parameters theNetworkAnimator
should synchronize. This can be done via the inspector view interface or during runtime viaNetworkAnimator.EnableParameterSynchronization
.Documentation
Testing & QA
Functional Testing
Manual testing :
Manual testing done
Automated tests:
Covered by existing automated tests
Covered by new automated tests
Does the change require QA team to:
Review automated tests
?Execute manual tests
?If any boxes above are checked, please add QA as a PR reviewer.
Backport
No backport is needed as this sustainability update will only be available in v2.x.