getGlobalGroups
Platform Compatibility PC Mac OSX Oculus Quest X X X Check what global groups this object is in returns a String (text) value Example: 1obj.getGlobalGroups()
McMaster University Virtual Reality Simulation and Research
Articles for coding in Artspark
Platform Compatibility PC Mac OSX Oculus Quest X X X Check what global groups this object is in returns a String (text) value Example: 1obj.getGlobalGroups()
Platform Compatibility PC Mac OSX Oculus Quest X X X Remove this object from a global group without destroying it Parameters: name A string value Example: 1obj.removeFromGlobalGroup(name)
Platform Compatibility PC Mac OSX Oculus Quest X X X Add this object to a global group, all objects are in the ALL group by default Parameters: name A string value Example: 1obj.addToGlobalGroup(name)
Platform Compatibility PC Mac OSX Oculus Quest X X X Run a LUA function or script on another object or self if index not provided Parameters: function A string value index Optional An integer value Example: 1obj.runLuaFunction(variable, index)
Platform Compatibility PC Mac OSX Oculus Quest X X – Create a camera object and attach this script to make it render its display over top of all other camera(s) in the level. 123456–First enable the camera obj.setCamEnabled(true) –Then stop the camera from overwriting the other camera(s) obj.blurCamera(true) –Make this camera render on top obj.setCamDepth(100)
Platform Compatibility PC Mac OSX Oculus Quest X X X Get if an accessory backside is mirrored Parameters: name A string value returns a Boolean (true or false) value Example: 1obj.accessoryBacksideMirror(name)
Platform Compatibility PC Mac OSX Oculus Quest X X X Set if an accessory has its back image mirrored Parameters: name A string value _tf A boolean value Example: 1obj.setAccessoryBacksideMirror(name, _tf)
Platform Compatibility PC Mac OSX Oculus Quest X X X Restore default text angle (towards main camera) Parameters: index Optional An integer value Example: 1obj.reset3DTextAngle(index)
Platform Compatibility PC Mac OSX Oculus Quest X X X Get the 3D text angle in X,Y,Z Parameters: index Optional An integer value returns a String (text) value Example: 1obj.get3DTextEuler(index)
Platform Compatibility PC Mac OSX Oculus Quest X X X Set the 3D text angle in X,Y,Z Parameters: euler A string value index Optional An integer value Example: 1obj.set3DTextEuler(euler, index)