The "camera_get_view_valign" Function

Syntax

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

Description

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

Example

var valign = camera_get_view_valign(view_camera[1]);
draw_set_valign(valign);