aliessmael/Unity-Logs-Viewer

Reporter Can't Handle AssetBundle Scenes

Oshroth opened this issue · 1 comments

Reporter will generate errors when loading scenes from Asset Bundles because they have a level index of -1 which causes an IndexOutOfRangeException when trying to access the scenes array.

if( string.IsNullOrEmpty( scenes[ Application.loadedLevel ] ))
            scenes[ Application.loadedLevel ] = Application.loadedLevelName ;

Error: IndexOutOfRangeException: Array index is out of range.
Reporter.Update () (at Assets/Reporter/Reporter.cs:1817)

fixed