예제 #1
0
        public void OpenWebBrowser(UBrowser _browser, int _nWidth, int _nHeight, string _strInitUrl)
        {
            _bInit     = true;
            m_Browser  = _browser;
            Width      = _nWidth;
            Height     = _nHeight;
            InitialURL = _strInitUrl;

            OnEngineConnected += UWebBrowser_PC_Widget_OnEngineConnected;
            OnJSQuery         += UWebBrowser_PC_Widget_OnJSQuery;
            OnPageLoaded      += UWebBrowser_PC_Widget_OnPageLoaded;
            OnDialogShow      += UWebBrowser_PC_Widget_OnDialogShow;

            gameObject.SetActive(true);
        }
예제 #2
0
        public void InitBrowser(UBrowser _browser)
        {
            m_browser = _browser;

            InitPrefabLinks();
        }