Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Web
  5. EvalJS

EvalJS

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:

1
obj.EvalJS(JavaScript, browser, storeToString)
Tags
Was this article helpful to you? Yes No

How can we help?