Builtin Library
README.md
camera Module
Public Luau surface over the __camera Internal FFI namespace —
script-facing camera queries.
Purpose
Wrap the raw __camera.* FFI namespace in a typed Luau table that
gets auto-injected as _G.camera via the prelude. The engine-level
scheduleRender lives on the companion __cameraBindings Internal
namespace and is consumed directly by Camera.component; this
module is the small public surface scripts use to find the active
viewport camera.
Usage
local camId = camera.main()
if camId then
local cam = entity(camId)
-- ...
end
Exports
camera.main() -> string?— entity id of the active viewport camera, or nil if none is active this frame.