/**<summary> Process image or folder of images for debugging a session from device </summary>*/ public void ProcessImages(string path) { ARController arController = FindObjectOfType <ARController>(); if (!arController) { return; } arController.SnapshotPose(); #pragma warning disable 4014 if (path.Contains(".jpg") || path.Contains(".jpeg")) { ServerAPI.LocationFine(locationController.buildingID, FileIO.GetFile(path)); // -> ARController.OnLocationResponse } else { foreach (string file in Directory.GetFiles(path)) { if (file.Contains("jpg") || file.Contains(".jpeg")) { ServerAPI.LocationFine(locationController.buildingID, FileIO.GetFile(file)); } // -> ARController.OnLocationResponse } } #pragma warning restore 4014 }