Game Logic: getSceneList

getSceneList()
  • Returns a list of the active scenes.

Return Type:

  • list [ KX_Scene ]
Note:
  • getSceneList() returns a list of the active scenes.  Main, background and overlay scenes. 
     
  • getSceneList() doesn't return a list of all scenes in the blend.
Sample Code

################## get a list of the active scenes
  

# import bge
import bge

# get a list of the active scenes
scene = bge.logic.getSceneList()