public override string ToString() { return(string.Format("[VideoCaptureState: mIsCapturing={0}, mCaptureMode={1}, mQualityLevel={2}, " + "mIsOverlayVisible={3}, mIsPaused={4}]", mIsCapturing, mCaptureMode.ToString(), mQualityLevel.ToString(), mIsOverlayVisible, mIsPaused)); }
public VoxSimUserPrefs SavePrefs() { VoxSimUserPrefs userPrefs = new VoxSimUserPrefs(); if ((eventResetCounter == string.Empty) || (eventResetCounter == "0")) { eventResetCounter = "1"; } if (startIndex == string.Empty) { startIndex = "0"; } PlayerPrefs.SetString("Listener Port", inPort); PlayerPrefs.SetInt("Make Logs", Convert.ToInt32(makeLogs)); PlayerPrefs.SetString("Logs Prefix", logsPrefix); PlayerPrefs.SetInt("Actions Only Logs", Convert.ToInt32(actionsOnly)); PlayerPrefs.SetInt("Full State Info", Convert.ToInt32(fullState)); PlayerPrefs.SetInt("Timestamps", Convert.ToInt32(logTimestamps)); List <string> urlStrings = new List <string>(); string urlsString = string.Empty; for (int i = 0; i < numUrls; i++) { urlStrings.Add(string.Format("{0}|{1}={2},{3}", urlLabels[i], urlTypes[i], urls[i], urlActiveStatuses[i].ToString())); } urlsString = string.Join(";", urlStrings); Debug.Log(urlsString); PlayerPrefs.SetString("URLs", urlsString); PlayerPrefs.SetInt("Capture Video", Convert.ToInt32(captureVideo)); PlayerPrefs.SetInt("Capture Params", Convert.ToInt32(captureParams)); PlayerPrefs.SetInt("Video Capture Mode", Convert.ToInt32(videoCaptureMode)); PlayerPrefs.SetInt("Reset Between Events", Convert.ToInt32(resetScene)); PlayerPrefs.SetInt("Event Reset Counter", Convert.ToInt32(eventResetCounter)); PlayerPrefs.SetInt("Video Capture Filename Type", Convert.ToInt32(videoCaptureFilenameType)); PlayerPrefs.SetInt("Sort By Event String", Convert.ToInt32(sortByEventString)); PlayerPrefs.SetString("Custom Video Filename Prefix", customVideoFilenamePrefix); PlayerPrefs.SetString("Auto Events List", autoEventsList); PlayerPrefs.SetInt("Start Index", Convert.ToInt32(startIndex)); PlayerPrefs.SetString("Video Capture DB", captureDB); PlayerPrefs.SetString("Video Output Directory", videoOutputDir); PlayerPrefs.SetInt("Make Voxemes Editable", Convert.ToInt32(editableVoxemes)); userPrefs.MakeLogs = makeLogs; userPrefs.LogsPrefix = logsPrefix; userPrefs.ActionOnlyLogs = actionsOnly; userPrefs.FullStateInfo = fullState; userPrefs.LogTimestamps = logTimestamps; for (int i = 0; i < numUrls; i++) { VoxSimSocket socket = new VoxSimSocket(); socket.Name = urlLabels[i]; socket.Type = urlTypes[i]; socket.URL = urls[i]; socket.Enabled = urlActiveStatuses[i]; userPrefs.SocketConfig.Sockets.Add(socket); } userPrefs.CapturePrefs.CaptureVideo = captureVideo; userPrefs.CapturePrefs.CaptureParams = captureParams; userPrefs.CapturePrefs.VideoCaptureMode = videoCaptureMode.ToString(); userPrefs.CapturePrefs.ResetBetweenEvents = resetScene; userPrefs.CapturePrefs.EventResetCounter = Convert.ToInt32(eventResetCounter); userPrefs.CapturePrefs.VideoCaptureFilenameType = videoCaptureFilenameType.ToString(); userPrefs.CapturePrefs.SortByEventString = captureVideo; userPrefs.CapturePrefs.CustomVideoFilenamePrefix = customVideoFilenamePrefix; userPrefs.CapturePrefs.AutoEventsList = autoEventsList; userPrefs.CapturePrefs.StartIndex = Convert.ToInt32(startIndex); userPrefs.CapturePrefs.VideoCaptureDB = captureDB; userPrefs.CapturePrefs.VideoOutputDirectory = videoOutputDir; userPrefs.MakeVoxemesEditable = editableVoxemes; return(userPrefs); }
public override string ToString() { return($"[VideoCaptureState: mIsCapturing={mIsCapturing}, mCaptureMode={mCaptureMode.ToString()}, mQualityLevel={mQualityLevel.ToString()}, mIsOverlayVisible={mIsOverlayVisible}, mIsPaused={mIsPaused}]"); }