Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Removed editor namespace from builds #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Assets/SeuratCapture/Scripts/CaptureBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
9 changes: 7 additions & 2 deletions Assets/SeuratCapture/Scripts/CaptureHeadbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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());
Expand Down