checkWebResult
Platform Compatibility PC Mac OSX Oculus Quest X X – Check if we received a value from browser yet Parameters: storeLoc A string value returns a Boolean (true or false) value Example: 1obj.checkWebResult(storeLoc)
McMaster University Virtual Reality Simulation and Research
Articles for coding in Artspark
Platform Compatibility PC Mac OSX Oculus Quest X X – Check if we received a value from browser yet Parameters: storeLoc A string value returns a Boolean (true or false) value Example: 1obj.checkWebResult(storeLoc)
Platform Compatibility PC Mac OSX Oculus Quest X X – Run a JavaScript function on browser (0 = hidden, 1 = 2D, 2 = 3D) and optionally store to storedString (will blank that string until filled!) Parameters: functionName A string value parameters A string value browser Optional An integer value storeToString Optional A string value … Read more FunctionJS
Platform Compatibility PC Mac OSX Oculus Quest X X – Run some JavaScript on browser (0 = hidden, 1 = 2D, 2 = 3D) and optionally store it to a string (will blank that string until filled!) Parameters: JavaScript A string value browser Optional An integer value storeToString Optional A string value Example: 1obj.EvalJS(JavaScript, browser, … Read more EvalJS
Platform Compatibility PC Mac OSX Oculus Quest X X – Close hidden browser Example: 1obj.CloseHiddenWeb()
Platform Compatibility PC Mac OSX Oculus Quest X X – Open a page on a hidden browser (eg: for music or JavaScript in the background) Parameters: page A string value Example: 1obj.OpenHiddenWeb(page)
Platform Compatibility PC Mac OSX Oculus Quest X X – Close 3D browser Example: 1obj.Close3DWeb()
Platform Compatibility PC Mac OSX Oculus Quest X X – Open a page in 3D world space Parameters: page A string value pos A string value Example: 1obj.Open3DWeb(page, pos)
Platform Compatibility PC Mac OSX Oculus Quest X X – Close 2D browser Example: 1obj.Close2DWeb()
Platform Compatibility PC Mac OSX Oculus Quest X X – Open a page in 2D GUI, fills the whole display. Parameters: page A string value Example: 1obj.Open2DWeb(page)
Platform Compatibility PC Mac OSX Oculus Quest X X X Global materials are shared between all objects by unique name, you only need to load them once on the first level that loads. In addition to the base texture, there’s a few extra textures you can use: Metallic map Sometimes called “Roughness” this represents how … Read more createGlobalMaterial