Unity Online Debugging (Android iOS)

Source: Internet
Author: User

http://blog.csdn.net/OnafioO/article/details/44903491

(This is useless, just see the screen on the phone)

Mobile phone installation unityremote and run, Unity set "edit" → "perferences", in external tools, set the Android SDK location, connect USB directly run unity on the phone to see the results.

The problem with this method is that the result of running with this unityremote and the packaged apk running result may not be consistent.

Not sure if the parameters of the real machine are viewed using Profiler

But you can debug with code output

[CSharp]View Plaincopy print?
    1. if (Input.getkeyup (Keycode.escape))
    2. {
    3. Debug.Log ("Return button");
    4. }

2 Unity pack android apk download Android SDK (Unity version and Android SDK tools have a certain correspondence, this article uses unity4.3.4 Android SDK tools version is 22.0.1)

Setting the Android SDK location in Edit->perferences


File->build Settings,

Then in the Inspector panel configuration, first change the next

Again, you can create a new KeyStore


Then you can click on Build to package, packaging The times is often wrong because the unity version and the Android SDK tools version is not, such as the lack of zipalign.exe,aapt.exe, such as hints

The workaround is to copy the Zipalign.exe,aapt.exe to android-sdk-windows\tools\ directly from the \android-sdk-windows\build-tools\19.1.0\.

Where zipalign.exe this file is only Build-tools 19.1. In more than 0 versions

Aapt.exe This basic majority version of Build-tools has


3 Using Profiler to view the real machine running parameters turn off phone data (2g net)
Turn on WiFi (phone and Unity pc on same subnet)

First use Unity to pack the APK, you need to check the package

Then build and run, run the mobile phone directly display the game screen, the profiler automatically pops up and displays the real parameters of the phone running apk

If the Unity Editor (editor) automatically fails to connect to the device, select the correct device from the active Profiler drop-down menu in the profiler window


Android device will have two more options in profiler with USB connection (after proper driver installation)

Website Original http://uec.unity3d.com/learning/document?file=/Manual/Profiler.html



IOSthe way to view package parameters with Profiler is basically always with Android, but you need to debug with unity on your Mac

Unity Online Debugging (Android iOS)

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.