- Home /
Start a Unity app from inside a native iOS app
Hi everyone,
Can someone point me some documentation about how to start a Unity application from inside a native iOS app?
The idea is to use the Unity app as a module of bigger app.
Thanks!
there's an awesome (free!) widget for this type of thing, on the Asset Store ... check it out. search on "iOS kit" or similar)
If you're talking about Prime31's native toolkit, that's not exactly what I'm looking for. This toolkit allows to use native interface from inside a Unity app. I want to use a Unity app from inside a native app.
Your question is a little confusing. Are you talking about a Unity application or Unity itself? (You say 'Unity' in title and comment, but 'application' in description).
Because Unity only runs on OSX and Windows.
@rabbitfang I bet he's talking about a Unity application.
Answer by maciekish · Jan 25, 2012 at 09:09 AM
Here you go http://fredandrandall.com/blog/2011/07/30/how-to-launch-your-macios-app-with-a-custom-url/
Remeber you can't run an app inside another app just like that. There will be a quick (but apparent) task switch.
Hi maciekish. Thanks for your answer. However that's not exactly what I'm looking for because I want everything packaged into one app. Also I'm not sure this method allows to return a result such as "player won" or "lost".
Sorry about that, but your question stated that you want to launch a Unity app from another app, i would word that question differently :)
Answer by HiddenDev · Jan 25, 2012 at 09:08 AM
As a first solution, here is what I found so far:
http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/
http://clevermartian.com/blog/?p=59
However those two solutions are from 2009 and 2010, I'm looking for something more recent. Anyway it should make my problem more clear.
Answer by toru_inoue · Dec 05, 2012 at 06:49 AM
How about this. Run iOS Unity-build from iOS App (Japanese)
Answer by rogercottam · Dec 07, 2012 at 01:32 AM
I am also working on a solution to ADD Unity content to an existing native iOS App. On start up, a native iOS landing screen will present the option to continue to the native app content or go to the 3D experience.
My current solution is to instantiate this landing screen view and controller at the end of prepareRunLoop, add it to the main window, and pause Unity. When the "go to 3D" button is pressed on this landing screen it is destroyed and Unity is unpaused - revealing a functioning 3D application. When the "go to app" button is pressed I plan to figure out how to get our existing app's initial view controller loaded and never unpause Unity (try to destroy it if I can). I'll have to merge our app controller with the one Unity generates, and this process will have to happen any time we re-build the "combined" app. We don't have a fully functional proof of this quite yet - but it is close.
I'm curious if this will get tripped up during Apple's approval process. Anyone have experience with submitting something like this?
Another option is get in earlier in the loading process to stop Unity starting up until some native action is taken, but exploring this option was certainly difficult and not obvious. We had something like this working with Unity 3 and xcode ? a while back but many things have changed and we weren't really happy with its complexity.
Your answer
Follow this Question
Related Questions
What is the best way to integrate native XCODE 0 Answers
Unity 5 and IOS Native plugins 0 Answers
A node in a childnode? 1 Answer