diff --git a/Assets/Scripts/Rendering/FfmpegPipe.cs b/Assets/Scripts/Rendering/FfmpegPipe.cs index 6467249257..eac2a7f160 100644 --- a/Assets/Scripts/Rendering/FfmpegPipe.cs +++ b/Assets/Scripts/Rendering/FfmpegPipe.cs @@ -148,7 +148,7 @@ public static string GetFfmpegExe() { traverseToApp = "../../"; } - else if (Application.platform == RuntimePlatform.WindowsPlayer) + else if (Application.platform == RuntimePlatform.WindowsPlayer || Application.isEditor) { traverseToApp = "../"; } diff --git a/Assets/Scripts/Rendering/VideoRecorderUtils.cs b/Assets/Scripts/Rendering/VideoRecorderUtils.cs index 53cd397ad8..d2824198ff 100644 --- a/Assets/Scripts/Rendering/VideoRecorderUtils.cs +++ b/Assets/Scripts/Rendering/VideoRecorderUtils.cs @@ -242,7 +242,7 @@ static public void StopVideoCapture(bool saveCapture) /// has just been recorded. static void CreateOfflineRenderBatchFile(string sketchFile, string usdaFile) { -#if UNITY_STANDALONE_WINDOWS || UNITY_EDITOR_WINDOWS +#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN string batFile = Path.ChangeExtension(usdaFile, ".HQ_Render.bat"); var pathSections = Application.dataPath.Split('/').ToArray(); var exePath = String.Join("/", pathSections.Take(pathSections.Length - 1).ToArray());