diff --git a/Assets/Mediapipe/Samples/Scripts/SceneDirector.cs b/Assets/Mediapipe/Samples/Scripts/SceneDirector.cs index c6c8fa803..011102cdb 100644 --- a/Assets/Mediapipe/Samples/Scripts/SceneDirector.cs +++ b/Assets/Mediapipe/Samples/Scripts/SceneDirector.cs @@ -30,7 +30,7 @@ void OnEnable() { // System.Environment.SetEnvironmentVariable("GLOG_v", "2"); } -#if (UNITY_STANDALONE_LINUX || UNITY_ANDROID) && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN +#if UNITY_ANDROID && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN [AOT.MonoPInvokeCallback(typeof(PluginCallback))] static void GetCurrentContext(int eventId) { currentContext = Egl.getCurrentContext(); @@ -48,7 +48,7 @@ void Start() { webCamScreen = GameObject.Find("WebCamScreen"); -#if UNITY_ANDROID +#if UNITY_ANDROID && !UNITY_EDITOR_OSX && !UNITY_EDITOR_WIN if (IsGpuEnabled()) { PluginCallback callback = GetCurrentContext;