Repository navigation
Commit fac0d6f
committed
fix: keep the bridge when a script adds it before the NetworkObject
NetworkObjectBridge.OnValidate queued a DestroyImmediate whenever no NetworkObject was present yet. Test helpers (and user scripts) add the bridge first, so the bridge was destroyed after the prefab was set up, breaking every unified hybrid test. The deferred call now checks again before destroying.1 parent 6c4d6c2 commit fac0d6f
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments