Summary
By its nature, augmented reality mixes the physical and virtual worlds, and that presents unique challenges to AR developers. We develop on a desktop or laptop computer, but the target device for the application is an untethered mobile device. While running an app in Unity Play-mode, an AR scene still needs sensor inputs from the remote device.
In this chapter, we covered a spectrum of tools and techniques that can help with developing and troubleshooting your augmented reality applications using Unity. We started with a basic, classic "print statement," using Debug.Log()
where you can output log messages to the Console window for insight into what is happening in your code. Initially, you might use this just in Play-mode, but we saw how you can build and run your project, and still attach it to the Unity Console window to monitor log messages with the app running on your mobile device. Then we built a virtual console window and wrote a ScreenLog.Log()
wrapper...