- Home /
iOS: Initializing Unity engine multiple times
Hi!
I'm trying to use Unity in a non-game app for iPad, and was wondering if it's possible to initialize the Unity engine multiple times?
It's basically the same question as this: http://answers.unity3d.com/questions/21904/ios-how-intialize-and-cleanup-unity-correctly
What I have working:
- Instantiating Unity/EAGLView from a NIB
- Running Unity engine in a non-fullscreen view
- Forwarding events from UIGestureRecognizers to Unity engine (this should really be built in)
Not working:
- Instantiating Unity engine a second time in a separate view
- Unity engine (or Mono) crashes when running UnityInitApplication() the second time
Is it at all possible? Will I need to move the same view around the app? Any insights into this would be much appreciated!
Edit:
Basic workflow of what I want to achieve:
- Start Unity engine
- Shutdown Unity engine / do cleanup
- Start Unity engine a second time
Edit 2:
Updated the question to emphasize that it's not the IDE but the actual engine I want to reset.
Answer by Proclyon · Dec 07, 2010 at 10:33 AM
Well I have had no succes in running a double, and there seems to be some problems with using several screens aswell. The only thing I can think of is running it on a virtual machine but let's be honest, you couldn't be that desperate to have two instances running right?
Also synchronizing with VS2010 keeps crashing when it was open, just like mono, just do assest and hit synchmonodevelop for mono to work properly.
I'm developing for iPad, so Visual Studio is not involved nor is multiple screens. Just multiple views (not simultaneously).
Well I don't know what to tell you besides, no you can not have a secondary instance running on the same machine.
I should perhaps have been more clear, I want the ability to start Unity, shutdown Unity and then start Unity again. I don't want two instances at the same time.
Sorry, I now understand what you mean with multiple screens. I was talking about the engine, not the ID$$anonymous$$
Aaaaaaaaaah so that's what you wanted! Well that's an interesting feat! But I have absolutely not a clue where to even begin automating that process :( Hope someone else does know, wondering how it can be done myself now.