Gamieon is a one-developer part-time studio focused on creating video games for the desktop and mobile platforms. Since 2010 Gamieon has developed and released six games. Including beta distributions, Gamieon's products have netted a combined 300,000 downloads!

Report content RSS feed Checklist for debugging and profiling Android apps from Unity

Posted by on

Couple things off the bat that I've found:

  • Your device may not appear in the Active Profiler dropdown in the Unity Profiler after you launch Unity. Don't worry about that...until after you Build and Run and it still doesn't show. Then worry.
  • When you have Development Build checked, and you do Build and Run, and then try to attach the profiler, Unity may freeze up. So, trying to profile or debug your Android app in Unity could freeze Unity 3.4.2f3 until you kill it with task manager. (Find those keywords, Google!)

Here's what I tell myself when I want to debug and profile my apps:

  1. First, make sure your Android is on your home network via Wi-Fi.
  2. Ping your Android device from the machine you're using Unity from. If you're not getting a response...then either your wireless setup is incorrect or there's a firewall in the way. I've never had firewall issues here. An improper setup can cause Unity to freeze up if you try to profile while the app is running.
  3. Go to File => Build Settings
  4. Check Development Build and Autoconnect Profiler. If necessary, check Script Debugging.
  5. If you need to see everything going on; like all the Debug.Logs and render statistics, go to Player Settings and check Enable 'logcat' profiler. (Later on I'll open a DOS window and run "adb logcat")
  6. Click Build and Run.

These steps got me going. I'm open to comments on other peoples' anedcotes or important things I'm probably leaving out.

Check out my homepage and news feeds

And my projects!

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Level
Avatar
Avatar
Last Online
Country
United States United States
Gender
Male
Friends
Become friends
Member watch
Start tracking
Blog
Browse
Blogs
Share