Join Kelley Hecker for an in-depth discussion in this video Reading console output on Android, part of Creating Mobile Games with Unity.
…Let's try building the game to an Android device…and reading the debug output while the game is running.…Getting the console output from Android requires using…the ADB tool that comes with the Android SDK.…First, build and run the game from Unity.…Then, open a terminal on Mac or Cmd prompt on Windows…and navigate to the folder where you installed the Android SDK.…Use the command CD.….…, to go up a directory, and CD followed by…the name of a folder to go into that folder.…Once in the Android SDK directory, go into the platform tools folder.…
We're going to use the command ADB log cat to print…the output from our device, however, we probably don't want everything.…To get only the output from Unity, type ADB log cat-S unity.…You can also use this longer command to get…output from Unity and some of the important Android output.…If you receive an error, type ./, before the ADB command.…This tells the terminal that you are running an executable.…As you can see, the output from the device appears in the terminal or command prompt.…
- Installing SDKs and setting up developer accounts
- Accessing mobile data
- Creating a sprite atlas
- Reading console input on iOS and Android
- Checking the size of your assets