Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

NetworkBehaviourInspector.OnInspectorGUI IndexOutOfRangeException

Discussion in 'Linux Editor' started by vis2k, Oct 26, 2015.

  1. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    3,263
    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)