IEnumerator ExportModel() { //isInteracting = true; var component = GetComponent <MeshRenderer>(); Material material = component.material; material.color = Color.blue; isOpen = false; ScreenController _screenController = UIPanel.GetComponent <ScreenController>(); _screenController.ExportMesh(); _screenController.OpenExportUI(isOpen); //_screenController.ExportMesh("TestExport"); //_screenController.disableScreen(); byte[] noize = { 255, 255, 255, 255, 255, 255, 255, 255, 255, 255 }; OVRHaptics.Channels[1].Preempt(new OVRHapticsClip(noize, 10)); yield return(new WaitForSeconds(0.3f)); material.color = initialColor; //isInteracting = false; }