Commit 6de550b
chore: merge develop 2 0 0 updates with SessionOwner permissions (#3176)
* fix: clamp spawntimeout to recommended range (#3174)
* update
Clamping spawntimeout
* update
improving parenting failed message when either the child or parent NetworkObject is not spawnd.
* update
Update the local SceneEventData.SceneEventType on the authority side for SceneLoadComplete.
* style
removing whitespaces
* feat: Add a SessionOwner ObjectStatus and allow InScenePlaced network objects to be distributed (#3175)
* Initial pass on SessionOwner ownership flag
* feat: Add SessionOwner OwnershipStatus flag
* update
removing additional session owner accessor.
* Add OwnershipPermissions tests
* fix client connect
* Revert "fix client connect"
This reverts commit 3c3b354.
* update
object distribution for in-scene placed NetworkObjects needs to use the InScenePlacedSourceGlobalObjectIdHash when building an object distribution list.
* Add changelog
* Remove unnecessary change
* Remove Settings.json
* Reword CHANGELOG
* fix
DAHost should not distribute session owner permission NetworkObjects.
When client is promoted to session owner, for now newly promoted client takes ownership of NetworkObjects that have the SessionOwner permission set.
Only prevent non-session owners from taking ownership of a NetworkObject with the SessionOwner permission set.
* test fix
Avoid the RemoveOwnership client-server only method.
* style
Visual studio code cleanup likes to sort by alpha... fixing for our standards.
* update
Adding check for session owner trying to change ownership to a non-session owner client.
* test
Adding an additional validation that a non-session owner cannot change ownership and that a session owner cannot change ownership to a non-session owner when the NetworkObject in question has the SessionOwner permissions set.
---------
Co-authored-by: NoelStephensUnity <noel.stephens@unity3d.com>
---------
Co-authored-by: Emma <emma.mcmillan@unity3d.com>1 parent 658ef01 commit 6de550b
File tree
10 files changed
+231
-80
lines changed- com.unity.netcode.gameobjects
- Editor
- Runtime
- Configuration
- Connection
- Core
- SceneManagement
- Spawning
- Tests/Runtime
- DistributedAuthority
- NetworkObject
10 files changed
+231
-80
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| |||
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
179 | 204 | | |
180 | 205 | | |
181 | 206 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | | - | |
| 1215 | + | |
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
| |||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
1252 | 1257 | | |
1253 | 1258 | | |
1254 | 1259 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 228 | + | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
955 | 951 | | |
956 | 952 | | |
957 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
958 | 957 | | |
959 | 958 | | |
960 | 959 | | |
| |||
Lines changed: 54 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
442 | 449 | | |
443 | 450 | | |
444 | 451 | | |
| |||
481 | 488 | | |
482 | 489 | | |
483 | 490 | | |
484 | | - | |
| 491 | + | |
| 492 | + | |
485 | 493 | | |
486 | 494 | | |
487 | 495 | | |
| |||
491 | 499 | | |
492 | 500 | | |
493 | 501 | | |
| 502 | + | |
494 | 503 | | |
495 | 504 | | |
496 | 505 | | |
| |||
549 | 558 | | |
550 | 559 | | |
551 | 560 | | |
552 | | - | |
| 561 | + | |
553 | 562 | | |
554 | 563 | | |
555 | 564 | | |
| |||
582 | 591 | | |
583 | 592 | | |
584 | 593 | | |
| 594 | + | |
585 | 595 | | |
586 | 596 | | |
587 | 597 | | |
588 | 598 | | |
589 | 599 | | |
590 | 600 | | |
591 | | - | |
| 601 | + | |
| 602 | + | |
592 | 603 | | |
593 | 604 | | |
594 | 605 | | |
| |||
610 | 621 | | |
611 | 622 | | |
612 | 623 | | |
| 624 | + | |
613 | 625 | | |
614 | 626 | | |
615 | 627 | | |
| |||
619 | 631 | | |
620 | 632 | | |
621 | 633 | | |
| 634 | + | |
622 | 635 | | |
623 | 636 | | |
624 | 637 | | |
| |||
631 | 644 | | |
632 | 645 | | |
633 | 646 | | |
| 647 | + | |
634 | 648 | | |
635 | 649 | | |
636 | 650 | | |
| |||
660 | 674 | | |
661 | 675 | | |
662 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
663 | 683 | | |
664 | 684 | | |
665 | 685 | | |
| |||
716 | 736 | | |
717 | 737 | | |
718 | 738 | | |
719 | | - | |
| 739 | + | |
720 | 740 | | |
721 | 741 | | |
722 | 742 | | |
| |||
836 | 856 | | |
837 | 857 | | |
838 | 858 | | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
839 | 865 | | |
840 | 866 | | |
841 | 867 | | |
| |||
847 | 873 | | |
848 | 874 | | |
849 | 875 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
| 876 | + | |
855 | 877 | | |
856 | | - | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
857 | 895 | | |
858 | 896 | | |
859 | 897 | | |
| |||
1629 | 1667 | | |
1630 | 1668 | | |
1631 | 1669 | | |
1632 | | - | |
| 1670 | + | |
1633 | 1671 | | |
1634 | 1672 | | |
1635 | 1673 | | |
| |||
2007 | 2045 | | |
2008 | 2046 | | |
2009 | 2047 | | |
2010 | | - | |
| 2048 | + | |
2011 | 2049 | | |
2012 | | - | |
| 2050 | + | |
2013 | 2051 | | |
2014 | | - | |
| 2052 | + | |
| 2053 | + | |
2015 | 2054 | | |
| 2055 | + | |
2016 | 2056 | | |
2017 | 2057 | | |
2018 | 2058 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
| 1906 | + | |
| 1907 | + | |
1906 | 1908 | | |
1907 | 1909 | | |
1908 | 1910 | | |
1909 | | - | |
| 1911 | + | |
1910 | 1912 | | |
1911 | 1913 | | |
1912 | 1914 | | |
| |||
0 commit comments