Commit fae403a
authored
fix: NetworkBehaviourEditor exception when using the inspector view while in play mode (#2641)
* fix
This fixes an issue where CheckForNetworkObject would perform its check when in playmode. This only needs to perform the check when not in play mode.
* style
Updated comments to be a bit clearer on what was updated.1 parent 6d461bf commit fae403a
File tree
1 file changed
+3
-2
lines changed- com.unity.netcode.gameobjects/Editor
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
0 commit comments