|
getMaterialNamegetMaterialName()Returns the name of the polygon materialReturn Type: string Sample Code# get controllercontroller = GameLogic.getCurrentController()# get object the controller is attached toobj = controller.owner# get the 1st meshmesh = obj.meshes[0]# get the first polygon on the meshpoly = mesh.getPolygon(0)# get the polygon material namepolyMatName = poly.getMaterialName() |