Camera.align 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 alignment relative to its parent. The alignment persists even if the parent is resized.
Accepted values are:
  • "all": covers the entire parent client area
  • "bottom": aligned along the bottom border, preserving height
  • "top": aligned along the top border, preserving height
  • "right": aligned along the right border, preserving width
  • "left": aligned along the left border, preserving width

Example

--! luart-extensions import ui, capture local win = ui.Window("Camera.align sample", "fixed", 640, 520) local cam = ui.Camera(win, 0, 0, 640, 460) -- Fill the entire parent window cam.align = "all" await win:showasync()