public static void ExportSceneUnderstandingInfo(string filename) { ResetSceneUnderstandingProgress(); //if ((int)Error.WORK != SRWorkModule_API.RegisterSceneUnderstandingCallback(Marshal.GetFunctionPointerForDelegate((ExportProgressCallback)UpdateSceneUnderstandingProgress))) // Debug.Log("[ViveSR] [Scene Understanding] Progress listener failed to register"); ReconstructionSectorSetting = ViveSR_RigidReconstructionRenderer.EnableSector; ViveSR_RigidReconstructionRenderer.EnableSector = false; byte[] bytearray = System.Text.Encoding.ASCII.GetBytes(filename); IntPtr parameter = Marshal.AllocCoTaskMem(filename.Length); Marshal.Copy(bytearray, 0, parameter, filename.Length); SRWorkModule_API.SetSceneUnderstandingOutputFileName(parameter, filename.Length); IsExportingSceneUnderstandingInfo = true; }