Search Unity

NetworkBehaviourInspector.OnInspectorGUI IndexOutOfRangeException

Discussion in 'Linux' started by mischa2k, Oct 26, 2015.

  1. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    Not sure if that was reported yet, but: when uncollapsing some components in the Inspector, we get the following error message until we collapse it again:

    IndexOutOfRangeException: Array index is out of range.
    UnityEditor.NetworkBehaviourInspector.OnInspectorGUI () (at /home/builduser/buildslave/unity/build/Extensions/Networking/Editor/NetworkBehaviourInspector.cs:122)
    UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at /home/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1162)
    UnityEditor.DockArea:OnGUI()

    This happens for some of my scripts, and for some it works perfectly fine. Also I didn't test this in 5.2 so it might just be a Unet thing that was fixed already..

    (Latest Unity Linux build + Ubuntu 14.04)