Scene: objectsInactive

objectsInactive
  • Returns a list of objects on background layers.

Type:

  • list [ KX_GameObject ]
Sample Code

################## get a list of objects on background layers

# import bge
import bge

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

# get a list of objects on background layers
inactiveList = scene.objectsInactive