public void SetInsetFormWidget(UIWidget widget) { this.referenceWidget = widget; WebViewSizeFilterForNGUI sizeFilter = new WebViewSizeFilterForNGUI(referenceWidget); int[] insets = sizeFilter.GetEdgeInsets(); SetInsets(insets[0], insets[1], insets[2], insets[3]); }
private void RefreshInsets() { if (this.referenceWidget != null) { WebViewSizeFilterForNGUI sizeFilter = new WebViewSizeFilterForNGUI(referenceWidget); int[] insets = sizeFilter.GetEdgeInsets(); SetInsets(insets [0], insets [1], insets [2], insets [3]); } }