function · ui
pan_camera
Records one optional camera-centering intent.
ui.pan_camera(cell_x, cell_y)
- Stable ID
ui.pan-camera- Owner
- app.ScriptPackageHost
- Authority
- presentation
- Timing
- composition
- Availability
- Phase 14 package callbacks
- Side effects
- centers the Render-owned camera
- Determinism
- Host-created package identity and per-callback budgets.
- Introduced
- 1.19.0
Usage
Declare at most one request outside a panel to center the Render-owned camera on a bounded World-cell coordinate. The request never changes simulation state.
Parameters
- cell_x: signed World-grid X coordinate.
- cell_y: signed World-grid Y coordinate.
Returns
No gameplay value. The call records one detached camera intent.
Cost
Constant-size validation and one Render camera update.
Fields
This symbol has no fields.
Errors
- None
Examples
ui.pan_camera(12, -4)
API history
- 1.19.0: Camera-centering presentation intent added for Phase 19Q9E.