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

Modifying the Wrld map script

We are almost done; the last thing we need to do is let the Wrld Map script pull the last camera's position from our singleton SceneController. This means that we unfortunately have to modify the source of the Wrld Map script. Generally, we want to avoid modifying a third-party API, except that we have the source, and it really is our only option. Open up the WrldMap script, located in the Assets/Wrld/API folder, and follow along:

  1. Insert the following, between the lines identified:
using Wrld.Scripts.Utilities;  //after meusing Packt.HoloCore;#if UNITY_EDITOR  //before me
  1. Scroll down to the SetupApi method and insert the following code between the lines identified:
config.Collisions.BuildingCollision = m_buildingCollisions; ...

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