API ReferenceGE Extensionstech
`cameraPreview.lua`
> This Source Code Form is subject to the terms of the bCDDL, v. 1.1.
This Source Code Form is subject to the terms of the bCDDL, v. 1.1. If a copy of the bCDDL was not distributed with this file, You can obtain one at http://beamng.com/bCDDL-1.1.txt
Module variable: M
Hooks
onExtensionLoadedonSensorCreatedonSensorRemoved
Exported Functions
M.onExtensionLoaded()
Line 59
M.onSensorCreated(sensorType, sensorId)
Line 151
M.onSensorRemoved(sensorType, sensorId)
Line 158
Returns: M
M.getCamData()
Line 147
Returns: camData
M.changeCamDebugState(cam)
Line 68
M.visualizeCameraById(sensorId)
Line 122
M.stopVisualizeCameraById(sensorId)
Line 135
Exported Variables
M.dependencies
Line 7 - {"tech_sensors"}
Internal Functions
Show internal functions
unloadCamera(sensorId)(line 20)getDisplaySize(size)(line 24)loadCamera(sensorId)(line 34)loadCameras()(line 51)onExtensionLoaded()(line 59)changeCamDebugState(cam)(line 68)boolToNum(x)(line 78)visualizeCamera(cam)(line 82)visualizeCameraById(sensorId)(line 122)stopVisualizeCameraById(sensorId)(line 135)getCamData()(line 147)onSensorCreated(sensorType, sensorId)(line 151)onSensorRemoved(sensorType, sensorId)(line 158)