Пример #1
0
 // Use this for initialization
 void Start()
 {
     //myUrl = "http://localhost/EmBodyToolAddapted/paintannotate.php?perc=0&userID=3&presentation=0";
     GenerateUrl();
     Debug.Log("URL: " + myUrl);
     myBrowser.LoadURL(myUrl, true);
 }
Пример #2
0
    //public ScreenSlideShow dataSlides;

    public void PostPageOnBrowser(string site)
    {
        if (dataBrowser != null)
        {
            dataBrowser.gameObject.SetActive(true);
            dataBrowser.LoadURL(site, true);
        }
    }
Пример #3
0
        public void Awake()
        {
            //If the content browser is externally closed, make sure we go too.
            var dd = contentBrowser.gameObject.AddComponent <DestroyDetector>();

            dd.onDestroy += CloseBrowser;

            contentBrowser.SetNewWindowHandler(Browser.NewWindowAction.NewBrowser, this);
            contentBrowser.onLoad += data => controlBrowser.CallFunction("setURL", data["url"]);

            controlBrowser.RegisterFunction("demoNavForward", args => contentBrowser.GoForward());
            controlBrowser.RegisterFunction("demoNavBack", args => contentBrowser.GoBack());
            controlBrowser.RegisterFunction("demoNavRefresh", args => contentBrowser.Reload());
            controlBrowser.RegisterFunction("demoNavClose", args => CloseBrowser());
            controlBrowser.RegisterFunction("goTo", args => contentBrowser.LoadURL(args[0], false));

            VRMainControlPanel.instance.keyboard.onFocusChange += OnKeyboardOnOnFocusChange;
        }