Commit 017131d
authored
fix: NetworkTransform cannot set non-synchronized axis on non-authority instances (#3471)
Issue verified when investigating
[ForumSupport-939437](https://discussions.unity.com/t/client-network-transform-syncing-unchecked-axis/939437/1).
This PR resolves the issue in v2.x where you cannot update
non-synchronized axis values on non-authority instances without having
them be reset by the next frame.
[MTTB-1334](https://jira.unity3d.com/browse/MTTB-1334)
## Changelog
- Fixed: Issue where non-authority `NetworkTransform` instances would
not allow non-synchronized axis values to be updated locally.
## Testing and Documentation
- Includes the `NetworkTransformNonAuthorityTests` integration test.
- No documentation changes or additions were necessary.
<!-- Uncomment and mark items off with a * if this PR deprecates any
API:
### Deprecated API
- [ ] An `[Obsolete]` attribute was added along with a `(RemovedAfter
yyyy-mm-dd)` entry.
- [ ] An [api updater] was added.
- [ ] Deprecation of the API is explained in the CHANGELOG.
- [ ] The users can understand why this API was removed and what they
should use instead.
-->
## Backport
This fix is specific to NGO v2.x.1 parent 964e0ca commit 017131d
File tree
4 files changed
+648
-4
lines changed- com.unity.netcode.gameobjects
- Runtime/Components
- Tests/Runtime/NetworkTransform
4 files changed
+648
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
Lines changed: 55 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2524 | 2524 | | |
2525 | 2525 | | |
2526 | 2526 | | |
2527 | | - | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
2528 | 2531 | | |
| 2532 | + | |
2529 | 2533 | | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
2530 | 2541 | | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
2531 | 2546 | | |
2532 | 2547 | | |
2533 | 2548 | | |
| |||
2650 | 2665 | | |
2651 | 2666 | | |
2652 | 2667 | | |
2653 | | - | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
2654 | 2680 | | |
2655 | 2681 | | |
2656 | 2682 | | |
| |||
2696 | 2722 | | |
2697 | 2723 | | |
2698 | 2724 | | |
2699 | | - | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
2700 | 2740 | | |
2701 | 2741 | | |
2702 | 2742 | | |
| |||
2737 | 2777 | | |
2738 | 2778 | | |
2739 | 2779 | | |
2740 | | - | |
| 2780 | + | |
| 2781 | + | |
| 2782 | + | |
| 2783 | + | |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
2741 | 2792 | | |
2742 | 2793 | | |
2743 | 2794 | | |
| |||
0 commit comments