self:get_keep_aspect
Client
Retrieves the current aspect ratio preservation mode of the camera
Syntax
local mode = self:get_keep_aspect()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
core.camera.keep_aspect | mode | Current aspect ratio mode of the camera |
Examples
local entity = core.camera.create()
core.engine.print("info", "Keep aspect:", entity:get_keep_aspect())