Scene: name

name
  • Returns the name of the scene

Return Type:

  • string
Sample Code

################## get the name of the scene

# import bge
import bge

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

# get the scene name
nameScene = scene.name