Commit 0abc272
authored
fix: NetcodeIntegrationTest destroy GameObjects not NetworkObjects during shutdown sequence (#1756)
* fix
Destroy the GameObject and not the NetworkObject during DestroySceneNetworkObjects
* style
Added comment.
* fix
Some scenarios the NetworkObject and/or the GameObject can be null.
This update takes that into account.
* refactor fix
This is a cleaner and more accurate fix for the issue where a parent is destroyed before its child/children. Added additional comments to explain why.1 parent 98fbfbf commit 0abc272
File tree
1 file changed
+14
-1
lines changed- com.unity.netcode.gameobjects/TestHelpers/Runtime
1 file changed
+14
-1
lines changedLines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
496 | 508 | | |
497 | 509 | | |
498 | | - | |
| 510 | + | |
| 511 | + | |
499 | 512 | | |
500 | 513 | | |
501 | 514 | | |
| |||
0 commit comments