Camera.width 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 width. The width starts from 0 (left side of the Camera) and increases to the right.

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.width sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 300, 240) print("Camera width: "..cam.width) await win:showasync()