Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Script Specific
  5. addGlobalScript

addGlobalScript

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Add a global script other objects can call on themselves, with an option to overwrite the script

Parameters:

  • name
    • A string value
  • script
    • A string value
  • overwrite Optional
    • A boolean value

Example:

1
obj.addGlobalScript(name, script, overwrite)
Tags
Was this article helpful to you? Yes No

How can we help?