public void OnPostprocessBuild(BuildReport report) { if ((report.summary.options & BuildOptions.IncludeTestAssemblies) != 0) { RecordedPlaybackEditorUtils.ClearCreatedPaths(); } }
static async void ClearFilesOnBuildCompletion(BuildReport report) { while (report.summary.result == BuildResult.Unknown) { await Task.Delay(1000); } RecordedPlaybackEditorUtils.ClearCreatedPaths(); }
public static void UploadRecording(string recordingName, string filePath) { var projectId = Application.cloudProjectId; var url = $"{AutomatedQARuntimeSettings.GAMESIM_API_ENDPOINT}/v1/recordings?projectId={projectId}"; Debug.Log($"Uploading file {filePath} as {recordingName}"); // if composite recording, combine touchData for all referenced recordings try { var targetFilePath = FormatRecording(recordingName, filePath); Transaction.Upload(url, recordingName, targetFilePath); } finally { RecordedPlaybackEditorUtils.ClearCreatedPaths(); } }