Skip to main content

The "camera_set_view_halign" Function

Syntax#

camera_set_view_halign(camera, halign);
ArgumentTypeDescription
cameracameraThe camera index to modify (typically view_camera[#])
halignconstantThe alignment to set (va_left, va_center, or va_right)

Description#

Sets the horizontal 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_left, va_center, or va_top (va_left by default).

Example#

camera_set_view_halign(view_camera[1], va_center);