substr

Platform Compatibility PC Mac OSX Oculus Quest X X X Substring Parameters: input A string value start An integer value number An integer value returns a String (text) value Example: 1obj.substr(input, start, number)

replace

Platform Compatibility PC Mac OSX Oculus Quest X X X Replace C# style, pass a string, pass the text to find, and what to replace it with everywhere it occurs. Parameters: input A string value find A string value replace A string value returns a String (text) value Example: 1obj.replace(input, find, replace)

split

Platform Compatibility PC Mac OSX Oculus Quest X X X Split and get array, default separator is comma, optional specify extra index to get one string back instead of the whole array Parameters: input A string value separator A string value returns either an array or single string value Example: 1obj.string[] split(input, separator)

checkGamepad

Platform Compatibility PC Mac OSX Oculus Quest X X – Check gamepad button (1 – 19) down on specified gamepad (1 – 8), 0 for any gamepad Default Xbox controller buttons: Button Button Number A 0 B 1 X 2 Y 3 Left Bumper 4 Right Bumper 5 View (Back) 6 Menu (Start) 7 Left … Read more checkGamepad

mouseOnScreen

Platform Compatibility PC Mac OSX Oculus Quest X X – Check if mouse is on-screen returns a Boolean (true or false) value Example: 1obj.mouseOnScreen()

checkMousePos

Platform Compatibility PC Mac OSX Oculus Quest X X – Check mouse position, 0,0 is bottom-left and Screen.width/Screen.height top-right returns a String (text) value Example: 1obj.checkMousePos()

checkAxis

Platform Compatibility PC Mac OSX Oculus Quest X X – Check axis value against a deadzone Axis values: Horizontal The default Left/Right or A/D keys and left stick X axis on any gamepad Vertical The default Up/Down or W/S keys and left stick Y axis on any gamepad Mouse X The mouse X axis Mouse … Read more checkAxis

checkMouseButton

Platform Compatibility PC Mac OSX Oculus Quest X X – Check mouse button Parameters: button An integer value returns a Boolean (true or false) value Example: 1obj.checkMouseButton(button)

checkKey

Platform Compatibility PC Mac OSX Oculus Quest X X – Check key Parameters: key A string value returns a Boolean (true or false) value Example: 1obj.checkKey(key)

checkInput

Platform Compatibility PC Mac OSX Oculus Quest X X – Check defined buttons Buttons: Fire1 Left Ctrl or Mouse Left Click or Joystick Button 0 Fire2 Left Alt or Mouse Right Click or Joystick Button 1 Fire3 Left Shift or Mouse Middle Click or Joystick Button 2 Jump Spacebar or Joystick Button 3 Fly F … Read more checkInput