diff --git a/plugins/WebViewObject.cs b/plugins/WebViewObject.cs index 57281e0c..13058152 100644 --- a/plugins/WebViewObject.cs +++ b/plugins/WebViewObject.cs @@ -455,6 +455,7 @@ public void SetMargins(int left, int top, int right, int bottom, bool relative = #if UNITY_WEBPLAYER || UNITY_WEBGL #elif UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_EDITOR_LINUX //TODO: UNSUPPORTED + return; #elif UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX if (webView == IntPtr.Zero) return; @@ -465,6 +466,7 @@ public void SetMargins(int left, int top, int right, int bottom, bool relative = if (webView == null) return; #endif +#if UNITY_EDITOR || UNITY_STANDALONE if (mMarginLeft == left && mMarginTop == top && mMarginRight == right @@ -472,6 +474,7 @@ public void SetMargins(int left, int top, int right, int bottom, bool relative = { return; } +#endif mMarginLeft = left; mMarginTop = top; mMarginRight = right;