Scripting

Search The Documentation:

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

replaceLua

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Add or replace a script to an object, this will not force it to run the new code by default.

Parameters:

  • index
    • An integer value
  • newScript
    • A string value

Example:

1
obj.replaceLua(index, newScript)
Tags
Was this article helpful to you? Yes No

How can we help?