[U3D export xcode project package and use xcode to pass Parameters to U3D Scripts]

Source: Internet
Author: User

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.