I am trying to make UV scroll work for multiple spawned objects all using the same mesh.
The problem is that all of the added objects appear to be affecting the UV in the same way, scrolling at the exact same point in time, mimicking the first added instance of that mesh (I presume that because they share the same mesh that they are all UV scrolling the same way).
Here is the (very simple) module I have made for UV scrolling:
def UVScroll(own, x): mesh = own.meshes vertexArray = mesh.getVertexArrayLength(0) for v in range(vertexArray): vert = mesh.getVertex(0, v) UV = vert.getUV() UV += x vert.setUV(UV)
Is there any way to make the mesh of each spawned instance of an object independent of the other objects’ instances’ meshes?