-
Notifications
You must be signed in to change notification settings - Fork 2
Controlling Modes & Scripts
mika edited this page Apr 26, 2018
·
4 revisions
-
void JoinClass(string classid)
- disconnects and joins another class
-
void SwitchMode(string newMode)
- switches to another mode, without deleting LUA generated objects
- modes: D, O, S, 360, PC, G, 3D, T, PHOTOSPHERE, EMPTY
- you can call b:ClearObjects() manually to clear them
- NOTE: previous script loops get stopped/destroyed
-
void ToggleVR(bool state)
- toggle vr mode on/off
-
bool GetVRMode()
- returns true if cardboard vr mode is enabled