Game Logic: getCurrentScene

getCurrentScene()
  • Returns the current scene.

Return Type:

  • KX_Scene
Sample Code

################## get the current scene  
 
# import bge

import bge

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