/// <summary> /// For editor, standalone, and other platform's. /// </summary> private void OnApplicationQuit() { if (!ReportingManager.IsPlaybackStartedFromEditorWindow && RecordingMode == RecordingMode.Playback) { ReportingManager.FinalizeReport(); } }
public void OnPlayModeStateChanged(PlayModeStateChange state) { if (state == PlayModeStateChange.ExitingPlayMode || state == PlayModeStateChange.EnteredEditMode) { ReportingManager.FinalizeReport(); } }
/// <summary> /// For iOS "end state". /// </summary> /// <param name="pause"></param> private void OnApplicationPause(bool pause) { #if !UNITY_EDITOR if (RecordingMode == RecordingMode.Playback) { ReportingManager.FinalizeReport(); } #endif }
/// <summary> /// For Windows Store & Android "end state". /// </summary> /// <param name="pause"></param> private void OnApplicationFocus(bool hasFocus) { #if !UNITY_EDITOR if (!hasFocus && RecordingMode == RecordingMode.Playback) { ReportingManager.FinalizeReport(); } #endif }
public virtual void EndAutomation() { state = State.COMPLETE; OnAutomationFinished.Invoke(new AutomationFinishedEvent.Args(this)); // If this is a single test run from an Automated Run editor window, finalize the report. if (ReportingManager.IsPlaybackStartedFromEditorWindow) { ReportingManager.FinalizeReport(); } }