Scene: cameras

cameras
  • Returns a list of the cameras in the scene.

Return Type:

  • list [ KX_Camera ]
Sample Code

################## get a list of the cameras
 
# import bge
import bge

# get current scene
scene = bge.logic.getCurrentScene()

# get a list of the cameras
camList = scene.cameras