Game Object: currentLodLevel

currentLodLevel
  • Returns the current Level of Detail being used

Return Type:
  • integer
Levels of Detail in Blender 3D
  • Info menu >> Render Engine >> Blender Game
     
  • Properties menu >> Object >> Levels of Detail
Sample Code

################## get the current level of detail
   
# import bge
import bge

# get controller
cont = bge.logic.getCurrentController()

# get object that controller is attached to
obj = cont.owner

# get lod
lod = obj.currentLodLevel