Unity iOS4 Multi-Tasking Feature Support

Hi,

When I deploy for iOS 4 devices I find there's a few problems when unity work together with the iOS's multi-task features. Sometimes the background music is mute and touch control was disable when my game awakes from background process.

I guess it could because some initialization process I did with the Start() function lost its state when I hit the "home" button on iDevice, so they will not resume unless you do it manually again when I awake the game from background.

What is the underline concept for unity engine to handle those background/active swap of game state?

Is there any delegate function in unity similar to applicationDidEnterBackground: / applicationWillEnterForeground: messages that we do with XCode?

Did you use Unity 3 Unity iPhone 1.x does not target iOS4 and has side effects due to it.

The handling for "coming back" and "going to sleep" is done through OnApplicationPause( bool pause ) :)