GBCameraUtils

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Camera and viewport projection utilities for world coordinate calculations.

Source File: addons/grid_building/utils/gb_camera_utils.gd

Extends: RefCounted

Constants

  • Constant: ProjectionMethod = GBEnums.ProjectionMethod - Projection methods for screen to world conversion

Public Methods

proj_method_to_string

1
proj_method_to_string(p_method: ProjectionMethod) -> String

Flags: static

Convert a projection method enum to a readable string label


get_center_of_camera_viewport

1
get_center_of_camera_viewport(cam : Camera2D) -> Vector2

Flags: static

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