Scene: activity_culling

activity_culling
  • Returns whether or not activity culling is being used.

Return Type:

  • boolean
     
  • activity culling being used: 1 or True
     
  • activity culling not being used: 0 or False
Note:
  • Activity culling disables game object logic bricks when the camera is more than a certain distance from the game object.
Sample Code

################## check to see if scene is using activity culling

# import bge
import bge

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

# check to see if scene is using activity culling
check = scene.activity_culling