O'Reilly logo

Learn ARCore - Fundamentals of Google ARCore by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Switching from AR to MR

Being able to switch scenes and maintain state is common task, but it seems to require a bit of work in Unity. Open up the Unity editor to the Navigation scene and complete the following:

  1. Open up the Assets/HoloCore/Scripts folder and create a new script called Singleton. Go to the book's downloaded source Code/Chapter_10 folder, copy the contents of the Singleton.cs file, and paste it into your new script. A Singleton is common pattern in Unity for creating an object you only want one of and when you never want that object destroyed. If you are new to Singleton, it will be in your best interest to spend some time and review the class.
  2. Create a new script in the same folder called SceneController and replace the generated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required