コード例 #1
0
 public void OnPostprocessBuild(BuildReport report)
 {
     if ((report.summary.options & BuildOptions.IncludeTestAssemblies) != 0)
     {
         RecordedPlaybackEditorUtils.ClearCreatedPaths();
     }
 }
コード例 #2
0
        static async void ClearFilesOnBuildCompletion(BuildReport report)
        {
            while (report.summary.result == BuildResult.Unknown)
            {
                await Task.Delay(1000);
            }

            RecordedPlaybackEditorUtils.ClearCreatedPaths();
        }
コード例 #3
0
        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();
            }
        }