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