GameObject popup = new GameObject("Web Popup"); popup.transform.SetParent(gameObject.transform); RectTransform rectTransform = popup.AddComponent(); rectTransform.anchorMin = new Vector2(0.5f, 0.5f); rectTransform.anchorMax = new Vector2(0.5f, 0.5f); rectTransform.pivot = new Vector2(0.5f, 0.5f); rectTransform.sizeDelta = new Vector2(800f, 600f); Canvas canvas = popup.AddComponent(); canvas.renderMode = RenderMode.ScreenSpaceOverlay; CanvasScaler scaler = popup.AddComponent(); scaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize; scaler.referenceResolution = new Vector2(1920f, 1080f); GraphicRaycaster raycaster = popup.AddComponent(); GameObject browserObject = new GameObject("Browser"); browserObject.transform.SetParent(popup.transform); RectTransform browserRectTransform = browserObject.AddComponent(); browserRectTransform.anchorMin = new Vector2(0f, 0f); browserRectTransform.anchorMax = new Vector2(1f, 1f); browserRectTransform.pivot = new Vector2(0.5f, 0.5f); browserRectTransform.sizeDelta = new Vector2(0f, 0f); browserRectTransform.localPosition = new Vector3(0f, 0f, 0f); WebViewObject webViewObject = browserObject.AddComponent(); webViewObject.Init((msg) => Debug.Log(string.Format("CallFromJS[{0}]", msg))); webViewObject.LoadURL("https://www.infate.me/shop.php");