Camera.visible readwrite

widget only

This property is only available when the ui module is loaded before capture and Camera is used as a widget. Accessing it in object mode will raise an error.
Get or set the Camera widget visibility. A true value means the Camera is shown; false means it is hidden.
This property is also affected by the Camera:show() and Camera:hide() methods.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.visible sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 620, 460) -- Toggle Camera visibility cam.visible = false sleep(2000) cam.visible = true await win:showasync()