void on_record() { if (ARKitStreamRecorder.IsRecording) { record_play.GetComponentInChildren <Text>().text = "Record"; ARKitStreamRecorder.StopRecording(); } else { options_panel.SetActive(true); } }
void track_click() { if (gsGlobal.EnableTracking) { gsGlobal.EnableTracking = false; trackButton.GetComponentInChildren <Text>().text = "Track"; if (ARKitStreamRecorder.IsRecording) { ARKitStreamRecorder.StopRecording(); } } else { gsGlobal.EnableTracking = true; trackButton.GetComponentInChildren <Text>().text = "Stop"; if (enable_stream_recording && ARKitStreamRecorder.IsRecording == false) { ARKitStreamRecorder.StartRecording(); } } }