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)
It looks like you need to grab the game object with the spatial component then grab the collider or the renderer via script.
Thanks for the help. It turns out I just had a rookie mistake of note including the proper #using. I was tired; hence, the stupid mistake.