- Home /
Array Index out of range on OnClientStart ?
hey, does anyone know what this Exception means and how to solve it?
Exception in OnStartClient:Array index is out of range. at (wrapper stelemref) object:stelemref (object,intptr,object)
at UnityEngine.Networking.NetworkLobbyPlayer.OnStartClient () [0x00018] in C:\buildslave\unity\build\Extensions\Networking\Runtime\NetworkLobbyPlayer.cs:42
at UnityEngine.Networking.NetworkIdentity.OnStartClient () [0x0008d] in C:\buildslave\unity\build\Extensions\Networking\Runtime\NetworkIdentity.cs:374
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
It is genereated when a Player connects on a Server or a Server is hosted.
$$anonymous$$aybe you should show us the content of NetworkLobbyPlayer
The NetworkLobbyPlayer is the original UnityComponent
if you are playing with arrays get used to seeing this error. it always means somewhere in your code you are trying to check an index number in an array higher than the size or length of the the array. unfortunatly usually the error line that the councel displays is not the problem. its usually the int index number you some how added up to check before that.
@Terristo hi, Getting same issue ... Have you sorted out ? Please help.
Your answer
Follow this Question
Related Questions
Serializing NetworkPlayer 0 Answers
[Command] not working UNET 0 Answers
Spawn networked player then add local object references [UNET] 1 Answer
Score dialog : probably a network problem ... 1 Answer
Sending Network player info with RPC 1 Answer