Camera.enabled 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's ability to respond to mouse and other events. When set to false, the Camera is disabled and its events will no longer be fired.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.enabled sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 620, 460) win:showasync() -- Disable Camera cam.enabled = false sleep(3000) -- Enable Camera cam.enabled = true waitall()