From 3d4564efe29c3d82a2f6679bcf3fbafe6adca168 Mon Sep 17 00:00:00 2001 From: krystian-blackboxrealities Date: Tue, 5 Nov 2019 16:21:12 -0600 Subject: [PATCH] Removed editor namespace from builds --- Assets/SeuratCapture/Scripts/CaptureBuilder.cs | 2 -- Assets/SeuratCapture/Scripts/CaptureHeadbox.cs | 9 +++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/SeuratCapture/Scripts/CaptureBuilder.cs b/Assets/SeuratCapture/Scripts/CaptureBuilder.cs index bb1dda3..94ec251 100644 --- a/Assets/SeuratCapture/Scripts/CaptureBuilder.cs +++ b/Assets/SeuratCapture/Scripts/CaptureBuilder.cs @@ -20,8 +20,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using UnityEngine; -using UnityEditor; -using UnityEditor.SceneManagement; using System.Collections.Generic; using System.IO; diff --git a/Assets/SeuratCapture/Scripts/CaptureHeadbox.cs b/Assets/SeuratCapture/Scripts/CaptureHeadbox.cs index 2c88941..b4c091d 100644 --- a/Assets/SeuratCapture/Scripts/CaptureHeadbox.cs +++ b/Assets/SeuratCapture/Scripts/CaptureHeadbox.cs @@ -23,8 +23,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #if UNITY_EDITOR using UnityEditor; #endif -using System.Collections.Generic; -using System; using System.IO; public enum CubeFaceResolution @@ -130,7 +128,14 @@ void StartCapture() { string capture_output_folder = output_folder_; if (capture_output_folder.Length <= 0) { +#if UNITY_EDITOR capture_output_folder = FileUtil.GetUniqueTempPathInProject(); + +#else + Debug.LogError("No path was specified"); + StopCapture(); + return; +#endif } Directory.CreateDirectory(capture_output_folder); capture_.BeginCapture(this, capture_output_folder, 1, new CaptureStatus());