GetCameraPosition¶
Read cameraposition from the current render or game view.
GetCameraPosition()
Inputs: None.
Output: Camera Vector2, or nil when no camera is available. A capture-only render pass returns { x = 0, y = 0 }.
Errors and unavailable states: Returns nil when the game camera cannot be read; a capture-only pass returns a zero vector. This call has no reported Lua error.
See Rendering overview for coordinate and color conventions.