Animated Loading Screens

Noticing Unity 1.5’s spiffy new “call external C functions from C#” bit, I think it is now reasonably easy to get XCode to display an animated loading screen by, say, before loading a level, flipping a boolean switch which tells it to draw the loading screen instead of Unity, and then flipping it back when the load’s done. All I need to know is where Unity hides the ViewController, or else how I would go about changing what’s drawn through XCode (unfortunately I haven’t had a lot of experience with it, although I understand the general idea of how it works). I really just need someplace to start, and I can get the rest working…haven’t had any luck with it yet though.

For the record, I’m running the full license, and I’m at least fairly sure everything above made sense.

Unity doesn’t hide anything. Just look into AppController.mm file which is generated along with XCode project by Unity. In theory it should be possible to run a secondary rendering loop on a separate thread while Unity is loading.

I haven’t tried it myself however, so I don’t know if it is easy to achieve in reality :slight_smile:

I was hoping to avoid having to run a second thread…can the iPhone even do that? I was thinking of writing a different rendering loop to run instead of Unity’s if loading is set. Anyway, I see where to start in there, thanks a lot!