TheStable/Assets/AVProVideo/Editor/Scripts/PostProcessBuild.cs
Jamie Greunbaum ef9ccfef19 - Added trees outside the stable.
- Added a video player with horse songs preloaded.
- Adjusted post-processing to be less harsh outdoors, and more visible indoors.
2025-05-03 01:57:06 -04:00

33 lines
1.1 KiB
C#

#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
//-----------------------------------------------------------------------------
// Copyright 2015-2021 RenderHeads Ltd. All rights reserved.
//-----------------------------------------------------------------------------
namespace RenderHeads.Media.AVProVideo.Editor
{
public class PostProcessBuild
{
[PostProcessBuild]
public static void OnPostProcessBuild(BuildTarget target, string path)
{
bool x86 = false;
#if UNITY_2017_3_OR_NEWER
// 64-bit only from here on out, woo hoo!!! \o/
#else
x86 = target == BuildTarget.StandaloneOSXIntel || target == BuildTarget.StandaloneOSXUniversal;
#endif
if (x86)
{
string message = "AVPro Video doesn't support target StandaloneOSXIntel (32-bit), please use StandaloneOSXIntel64 (64-bit) or remove this PostProcessBuild script";
Debug.LogError(message);
EditorUtility.DisplayDialog("AVPro Video", message, "Ok");
}
}
}
}
#endif // UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX