1. Export the xcode Project
File-> building and setting, export the IOS Project (incorrect misunderstanding failed)
2. Run the xcode project. In the UI folder of the classes folder, go to unityappcontroller + viewhanding. MM early.
3. Edit it in the showgameui () function. This is an interface creation portal (which can implement functions, but I wonder if it is correct)
Customize your own UI, such as adding a button or something.
4. xcode sends messages to U3D scripts and transmits parameters (because only character Arrays can be passed, other variables need to be converted)
5. unitysendmessage ("", "", "") function. Three variables are represented respectively:
The name of the gameobject, the function contained in the bound script, and the passed char * value.
The following functions can be implemented:
For example, you can use the buttons created by xcode to control the crane status.
You can also set the animation, position, and speed of the Crane Based on the data obtained from other types.
[U3D export xcode project package and use xcode to pass Parameters to U3D Scripts]