I have a project that runs successfully on windows. On my android device it runs fine but only in development builds. The same code running in a non-development build gives me a black screen and I've narrowed it down to a line that looks like this;
m_letters = new List< List< GameObject >>(m_internalGridHeight);
Like I said, the other builds are fine and I haven't set up any platform or build-mode specific settings so I would have expected the same behaviour. m_letters and m_internalGridHeight are both initialized correctly so far as I can tell, so it seems that it's the construction of the list of lists that causes the issue. I found this similar question here;
http://answers.unity3d.com/questions/627145/array-of-list-not-working-when-building-or-running.html
and it may be related but it wasn't solved, so any advice would be greatly appreciated.
↧