u
u
gets/sets the u position of the vertex on the UV map.
Type: float
Sample Code
###### get the vertex u position (UV map)
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# get u position of the vertex UV map
u_pos = vert.u
###### set the vertex u position (UV map)
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# set the the u position of the vertex UV map
vert.u = 1.0
|