scriptEditor

Platform Compatibility PC Mac OSX Oculus Quest X X – This is intended as a debug feature, and will open the script editor for the specified object. If you wish to make changes to the script that will take effect, make sure that script uses runInterval rather than onFrameTick, as the built-in functions don’t update … Read more scriptEditor

getDebugMode

Platform Compatibility PC Mac OSX Oculus Quest X X – Get debug mode on or off returns a Boolean (true or false) value Example: 1obj.getDebugMode()

setDebugMode

Platform Compatibility PC Mac OSX Oculus Quest X X – Set debug mode on or off. When debug mode is on you can hold LEFT SHIFT and RIGHT CLICK on an object to open its debug information at runtime and edit its script. Parameters: _tf A boolean value Example: 1obj.setDebugMode(_tf)

eraseDecal

Platform Compatibility PC Mac OSX Oculus Quest X X X Erase with current decal, optional start position and direction Parameters: index Optional An integer value manualPos Optional A string value manualDir Optional A string value Example: 1obj.eraseDecal(index, manualPos, manualDir)

decalRandomAngle

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the decal to be random angles or not Parameters: _tf A boolean value Example: 1obj.decalRandomAngle(_tf)

decalRandomColor

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the decal to be random colors or not Parameters: _tf A boolean value Example: 1obj.decalRandomColor(_tf)

paintDecal

Platform Compatibility PC Mac OSX Oculus Quest X X X Draw the current decal with optional start position and direction, otherwise defaults to object Parameters: index Optional An integer value manualPos Optional A string value manualDir Optional A string value Example: 1obj.paintDecal(index, manualPos, manualDir)

setDecalAngle

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the angle of the decal in degrees Parameters: a A float value Example: 1obj.setDecalAngle(a)

setDecalSize

Platform Compatibility PC Mac OSX Oculus Quest X X X Set the size of the decal Parameters: s A float value Example: 1obj.setDecalSize(s)

setDecalColor

Platform Compatibility PC Mac OSX Oculus Quest X X X Change the active decal color in R,G,B or R,G,B,A Parameters: color A string value Example: 1obj.setDecalColor(color)