Hello,
I have one question about using Unity with XCode , for example if I wont to use some things from XCode in Unity, how can I make a bridge between them, is there any previous examples of this ?
I think that this will be very helpful for me and other Unity developers who are interested in such so.
You can not use unity with xcode and the vice versa makes only limited sense (instruments - shark), because you have no source access of any kind and for scripting it makes completely no sense and use at all as none of unitys languages is supported in xcode nor can xcode debug etc (thats what monodevelop is for and monodevelop at the same time is also the only option at all)
the only place where xcode comes in is if you own a Unity iOS addon and build the project, then it generates an iOS Project which you can use with XCode, but thats it.
I wish to create simple call function from Unity to XCode for example Game Centre methods .
Now the question is, when I create in XCode source file for example :
float FooPluginFunction () { return 5.0F; }
Then what should I do, do I leave this C file, compile if or what, and then what should I import in Unity to make a call to that method from C file ?
You would keep the file around as is right and then add it to the build iOS XCode project after building so its found upon the compilation and linking.
To use it in unity you additionally must create a class that binds this code with DLLImport(“__internal”) (see folded iOS paragraph)
The example project at the bottom of the documentation page you linked should give you a good idea of how that part works, so does the example codes posted on the page itself
Thanks , I will try to start with some basic tests and then see will I be able to create my custom plugin for Game Centre
And once more thanks for help.