Camera.getZoom()
Type | function |
Library | wattageTileEngine.Camera.* |
Return value | Number |
Keywords | Wattage, Camera |
See also |
Overview
This function retrieves the current zoom value of the camera. No zoom is indicated by the value 1.
Syntax
Camera.getZoom()
Examples
-- tileEngineViewControl is an instance of ViewControl
local camera = tileEngineViewControl.getCamera()
local curZoom = camera.getZoom()