void LoadUrl(string url){ m_callback = new WebViewCallbackTest(); webview = GetComponent<WebViewBehavior>(); if( webview != null ) { webview.LoadURL( url ); webview.SetVisibility( true ); webview.SetMargins(0,500,0,0); webview.setCallback( m_callback ); } }
// Use this for initialization void Start () { m_callback = new WebViewCallbackTest(); WebViewBehavior webview = GetComponent<WebViewBehavior>(); if( webview != null ) { webview.LoadURL( "https://www.google.co.jp" ); webview.SetVisibility( true ); webview.setCallback( m_callback ); } }
// Use this for initialization void Start() { m_callback = new WebViewCallbackTest(); WebViewBehavior webview = GetComponent <WebViewBehavior>(); if (webview != null) { webview.LoadURL("https://www.google.co.jp"); webview.SetVisibility(true); webview.setCallback(m_callback); } }
// Use this for initialization void Start() { m_strURL = PlayerPrefs.GetString("BrowserURL"); m_callback = new WebViewCallbackTest(); WebViewBehavior webview = GetComponent<WebViewBehavior>(); if( webview != null ) { //int left = (int)0; int top = (int) (1.3*Screen.height/12.8); //int right = (int)Screen.width; //int bottom = (int) (11.5*Screen.height/12.8);*/ webview.SetMargins(0, top, 0, top); webview.LoadURL( m_strURL ); webview.SetVisibility( true ); webview.setCallback( m_callback ); } }
void Start() { m_callback = new WebViewCallbackTest(); m_webview = gameObject.AddComponent<WebViewBehavior>(); if( m_webview != null ) { m_webview.LoadURL( "http://www.yahoo.co.jp/" ); m_webview.SetMargins( 0, 0, 0, (Screen.height / 10) ); m_visibleFlag = true; m_webview.SetVisibility( m_visibleFlag ); m_webview.setCallback( m_callback ); } }