com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

NetworkManager gives error on serializing empty NetworkPrefabs array

Open yigiteren opened this issue 3 years ago • 1 comments

Steps to produce:

  1. Create an empty GameObject and add NetworkManager component to it.
  2. 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.

Screenshot

yigiteren avatar Mar 28 '22 10:03 yigiteren

Added to our backlog as MTT-2980

will-mearns avatar Mar 28 '22 15:03 will-mearns

Assigning to @ashwinimurt to check if this still repro's.

ashwinimurt avatar Aug 22 '22 18:08 ashwinimurt

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.

ShadauxCat avatar Aug 25 '22 22:08 ShadauxCat