The "camera_get_view_halign" Function

Syntax

camera_get_view_halign(camera);
ArgumentTypeDescription
cameracameraThe camera index to check (typically view_camera[#])

Description

Returns the horizontal alignment of the input camera, if it is currently assigned to a view. Possible values are va_left, va_center, va_top. If the camera is not assigned to a view, va_left will be returned.

Example

var halign = camera_get_view_halign(view_camera[1]);
draw_set_halign(halign);