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

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.x sample", "fixed", 640, 520) local cam = ui.Camera(win, 10, 10, 300, 240) -- Move Camera to the right cam.x = 200 await win:showasync()