Commit c632b13
authored
fix: distributable or sessionowner flag always defaults for in-scene placed NetworkObjects (#3407)
This PR removes the opinionated restrictions to permissions with
in-scene placed NetworkObjects and matches the DAHost redistribution
logic to mirror the rust server's when a client disconnects.
[MTT-11973](https://jira.unity3d.com/browse/MTT-11973)
## Changelog
- Fixed: Issue where root level in-scene placed `NetworkObject`s would
only allow the ownership permission to be no less than distributable or
sessionowner.
## Testing and Documentation
- No tests have been added (requires manually testing in-editor)
- 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
No backport is needed since this is a distributed authority specific
fix.1 parent 0eec5e2 commit c632b13
File tree
3 files changed
+5
-16
lines changed- com.unity.netcode.gameobjects
- Runtime
- Connection
- Core
3 files changed
+5
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
| 1198 | + | |
1201 | 1199 | | |
1202 | | - | |
| 1200 | + | |
| 1201 | + | |
1203 | 1202 | | |
1204 | 1203 | | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
| 1204 | + | |
1208 | 1205 | | |
1209 | 1206 | | |
1210 | 1207 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 328 | | |
338 | 329 | | |
339 | 330 | | |
| |||
0 commit comments