
name
- Returns the object's name.
Type:
- string

Sample Code
################## get the object's name
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get the object's name
name = obj.name