I’m noob to Unity and i’m an xcode developer.
My question is simple. Is it possible to start a Unity 3d project directly from Xcode.
I know that i can export my Unity project to xcode, but i want to lunch it from a button for example.
Could you give me some advice?
You won’t be able to start from xCode. Unity generate a skeleton for your project that contains so many stuff in it.
You could start with an empty project, generated from Unity and add your stuff from here. but if you are a noob as you wrote, you will probably have to gain more confidence in development on Unity + xCode + openGL. It’s quite hard.
the first idea that comes is to start with a very small scene that would first call a UIView from UIKit.
good luck.
You can do it with a trick.
If you download native toolkit from the asset store (its free) you can make an empty scene in unity and put a script on an empty game object with this:
void Start()
{
Application.LoadLevel(“myMainScene”);
NativeToolkitBinding.activateUIWithController( “myMainViewController” );
}
obviously “myMainScene” will be the name of the scene you want to load and “myMainViewController” will be the controller you designed in Xcode with the button to play the unity game.
on the button you will put the hideViewController script to play your main unity3d scene.
I did this in my app and it works really really good.