GBCameraUtils

Helper to get the center of the camera's viewport rectangle

sort Weight: 10

Helper to get the center of the camera’s viewport rectangle

Version: v5.0.0

STABLE

Inherits: RefCounted
Source: gb_camera_utils.gd
Parsing: AST-based for maximum accuracy with symbol typing


Constants

ProjectionMethod

Projection methods for screen to world conversion

Value: GBEnums.ProjectionMethod


Methods

proj_method_to_string

Signature: static proj_method_to_string(p_method: ProjectionMethod) -> String

Convert a projection method enum to a readable string label

Returns: String

Static: true

Parameters:

  • p_method: ProjectionMethod

get_center_of_camera_viewport

Signature: static get_center_of_camera_viewport(cam : Camera2D: Variant) -> Vector2

Helper to get the center of the camera’s viewport rectangle

Returns: Vector2

Static: true

Parameters:

  • cam : Camera2D: Variant