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) |