I'm trying to display a "loading..." dialog to the user after a button press and I must not understand something very basic. This is what I'm doing:
..but the "Loading..." GUI.Label is never drawn on screen, despite the loading process taking significant time. What am I not understanding, or how would you do this?
I think the problem is that OnGUI does not have 'enough time' to redraw, since the Load operation is non preemptive.
I never actually faced this problem, but I guess your best call is to start a coroutine to load your resource, so that OnGUI keeps running in the foreground.
This is untested code, but it should lead you in the right direction.
answered Oct 27 '11 at 09:24 AM