I have a game object with the Spatial Mapping Collider and Spatial Mapping Renderer in my scene but when I try to access SpatialMapping via a script, it says it is NULL. Any idea why?
SpatialMapping.Instance.DrawVisualMeshes = false;
Throws:
NullReferenceException: Object reference not set to an instance of an object
GameStateManager.Update () (at Assets/Scripts/GameStateManager.cs:132)