public static void ClearCache() { if (SparseSpatialMapManager.isAvailable()) { using (var manager = SparseSpatialMapManager.create()) { manager.clear(); } } }
/// <summary> /// MonoBehaviour Awake /// </summary> protected virtual void Awake() { if (!EasyARController.Initialized) { return; } if (!SparseSpatialMap.isAvailable()) { throw new UIPopupException(typeof(SparseSpatialMap) + " not available"); } if (!SparseSpatialMapManager.isAvailable()) { throw new UIPopupException(typeof(SparseSpatialMapManager) + " not available"); } mapRoot = new GameObject("SparseSpatialMapRoot"); sparseSpatialMapWorker = SparseSpatialMap.create(); Builder = sparseSpatialMapWorker; Localizer = sparseSpatialMapWorker; Manager = SparseSpatialMapManager.create(); }