Camera:show()method

widget only

This method 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.
Show and activate the Camera widget. Events can be fired once the widget is shown.

Return value

This method returns no value.

Example

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