Skip to main content

The "camera_set_view_valign" Function

Syntax#

camera_set_view_valign(camera, valign);
ArgumentTypeDescription
cameracameraThe camera index to modify (typically view_camera[#])
valignconstantThe alignment to set (va_top, va_middle, or va_bottom)

Description#

Sets the vertical alignment of a camera, if it is currently assigned to a view. Alignment determines which side(s) of the view are expanded or cropped following a resize operation. Possible values are va_top, va_middle, or va_bottom (va_top by default).

Example#

camera_set_view_valign(view_camera[1], va_middle);