getCamViewPort
Platform Compatibility PC Mac OSX Oculus Quest X X – Get the viewport of this camera returns a String (text) value Example: 1obj.getCamViewPort()
McMaster University Virtual Reality Simulation and Research
Articles for coding in Artspark
Platform Compatibility PC Mac OSX Oculus Quest X X – Get the viewport of this camera returns a String (text) value Example: 1obj.getCamViewPort()
Platform Compatibility PC Mac OSX Oculus Quest X X – Set the viewport of this camera Parameters: x A float value y A float value w A float value h A float value Example: 1obj.setCamViewPort(x, y, w, h)
Platform Compatibility PC Mac OSX Oculus Quest X X – Set camera orthographic size Parameters: size A float value Example: 1obj.setCamOrthoSize(size)
Platform Compatibility PC Mac OSX Oculus Quest X X – Get camera orthographic size returns a Float (decimal number) value Example: 1obj.getCamOrthoSize()
Platform Compatibility PC Mac OSX Oculus Quest X X – Set the cam FOV Parameters: size A float value Example: 1obj.setCamFOV(size)
Platform Compatibility PC Mac OSX Oculus Quest X X – Get the cam FOV returns a Float (decimal number) value Example: 1obj.getCamFOV()
Platform Compatibility PC Mac OSX Oculus Quest X X – Set if the camera is orthographic Parameters: _tf A boolean value Example: 1obj.setCamOrtho(_tf)
Platform Compatibility PC Mac OSX Oculus Quest X X – Get if the camera is orthographic returns a Boolean (true or false) value Example: 1obj.getCamOrtho()
Platform Compatibility PC Mac OSX Oculus Quest X X – Try to set the active camera for detecting input to ours Example: 1obj.camAcceptInput()
Platform Compatibility PC Mac OSX Oculus Quest X X – Try to set the current camera our script affects to one we have stored, -1 index for main camera Parameters: index An integer value Example: 1obj.trySetCam(index)