Camera.parent readonly

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 the parent widget that owns the Camera widget.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.parent sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 620, 460) print("Camera parent is a "..type(cam.parent)) await win:showasync()