|
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? Thank you. -Greg
(comments are locked)
|
|
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. Thank you very much for the lead, roamcel. Below is what seams to be working for me... private var inProgress : boolean = false; private var routineLaunched : boolean = false; function OnGUI () { } function mycoroutine () { }
Oct 27 '11 at 10:39 PM
ghart
(comments are locked)
|
