Bridging iOS to Unity and load specific scene through Objective-C code.

Hello,

I am a iOS developer among others and I have a task to evaluate if it works. If yes we will start working with Unity 3D too for our project, but before this we need to make a prove of concept. Concept is, we have our iOS iPad application and a Unity 3D project which has lets say 50 scenes, those scenes should be able to load from our native Objective-C app. Ofcourse the best for us would be to load a scene into a UIView and this UIView add as a subview into a parent so we can have perfect user interface and interaction! as far as I read so far this is impossible, if anyone can advice or have experience on this, welcome.

Anyway, I found some blogposts describing how to embed the Unity iOS exported project into XCode and put it “hide”/“unhide” between you UIViewController so I can have my app flow and pause/unpause Unity project when I want. My problem is that I need a solution because based on some parameters the specific Unity scene should be loaded, come to front and start. Of course this requires the power of somehow communicate with the Unity and send a message to it, can this be achieved through a plugin and if YES, can I have some help on where to start? e.g. “Objective-C to Unity bridging how to…” and “Here is API/Explain on where to focus to load specific scene of Unity project through your script”.

I hope this makes perfect clear on what I’m looking for and thank you in advance.

Kind regards.

I think you would have to build the scene loading functions inside Unity and then use UnitySendMessage from the XCode project. Similar to how it works with the web player.
See this page in the manual under “Calling C# / JavaScript back from native code”