public static void StopRecordingSequence() { USRecordSequence orSpawnRecorder = USRuntimeUtility.GetOrSpawnRecorder(); if (orSpawnRecorder) { UnityEngine.Object.DestroyImmediate(orSpawnRecorder.gameObject); } }
public static void StartRecordingSequence(USSequencer sequence, string capturePath, int captureFramerate, int upScaleAmount) { USRecordSequence orSpawnRecorder = USRuntimeUtility.GetOrSpawnRecorder(); orSpawnRecorder.StartRecording(); orSpawnRecorder.RecordOnStart = true; orSpawnRecorder.CapturePath = capturePath; orSpawnRecorder.CaptureFrameRate = captureFramerate; orSpawnRecorder.UpscaleAmount = upScaleAmount; }