Scene: objects

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

Return Type:

  • list [ KX_GameObject ]
Sample Code

################## get a list of the objects

# import bge
import bge

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

# get a list of the objects
objList = scene.objects