Gamieon is a privately owned entertainment software development company located in Tampa, Florida. Since October of 2004, we have aimed to provide quality video game software which emphasizes both intellectual and action-driven challenge to the gaming community. Gamieon depends on the talent of individuals working as a team to develop video games and video game engines with a focus on exceptional game play and surrealism.

Report article RSS Feed Checklist for debugging and profiling Android apps from Unity

Posted by Gamieon on Feb 17th, 2012

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
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Level
Avatar
Avatar
Offline Since
Dec 24, 2014
Country
United States United States
Gender
Male
Member Watch
Track this member
Blog
Browse
Blogs
Report Abuse
Report article