com.unity.netcode.gameobjects
com.unity.netcode.gameobjects copied to clipboard
NetworkManager gives error on serializing empty NetworkPrefabs array
Steps to produce:
- Create an empty GameObject and add NetworkManager component to it.
- You will see the error popping up on the console immediately
Expected behaviour: No errors to be given because an array is empty Current behaviour: Gives about 9 errors, "Retrieving array element that was out of bounds"
The issue only occurs when NetworkPrefabs array is empty.

Added to our backlog as MTT-2980
Assigning to @ashwinimurt to check if this still repro's.
Could not reproduce this issue. On inspection of the code referenced in the callstack in the screenshot, I see that a guard for an empty NetworkPrefabList was added in #1861 - closing this as fixed.