Game Object: meshes

meshes
  • Returns a list of the meshes on a game object. 

Type:

  • list [mesh]
Note:
  • Returns None if the object doesn't have a mesh.
Sample Code

################## get a list of the meshes on the object
  
# import bge
import bge

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

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

# get a list of the meshes
meshList = obj.meshes