Just another issue I've stumbled upon. I'm using Unity UI to display the speaker portrait during speech lines and I got a lot of IndexOutOfRangeExceptions in CursorIcon.cs:235 - I couldn't track down why the sprites array is suddenly empty, I blame it on some internals in Unity (I stepped through the parts where the array should be created, but it never got created, so I assume some ScriptableObject magic at work here?). Anyways, the exception prohibited the rest of the UI to synchronize properly (e.g. the speech line would not be written to the text element) so I applied the following fix in CursorIcon.cs:
Everywhere a test like "if(sprites == null)" occurs, I've rewritten the test to "if(sprites == null || sprites.Length == 0)".
This solved the issue for me.
Comments