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?
- if (Input.getkeyup (Keycode.escape))
- {
- Debug.Log ("Return button");
- }
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)