Luau API

In Meta VR you can access the exposed Luau API to interact with components of Meta VR.

How to access the API

-- Server/Client usage
local API = _G.MetaVR;

Demo examples

-- You can set to use a specific camera type by:
API.Camera:SetCameraType("Default")

-- This will set all Cameras to the "Disabled" state; basically MetaVR will
-- not touch workspace.CurrentCamera, this allows you todo custom camera manipulation
-- for like a cut-scene.
API.Camera:SetCameraEnabled(false)

-- If you were to call this again with the value being true it will set the CameraType
-- back to it's last type which would be Default.
API.Camera:SetCameraEnabled(true)

API Documentation

You can find API documentation below.

Last updated

Was this helpful?