Mysterious Texture Scrolling speed faster than speed of cube!

I have a texture over a plane and a cube.

Code for texture is :

plane.renderer.material.mainTextureOffset += Vector2.up * Time.deltaTime*speed;

Code for Cube is :

cube.transform.position += Vector2.up * Time.deltaTime*speed;

Since the value of speed is same for both(4), they are not moving at the same speed. The cube is slow and the texture is incredibly fast. How is this happening? How can i solve this?

There is no set rate for scrolling an offset like that in world space, since it depends entirely on the size of the object and how it’s UV mapped. If the plane is the default Unity plane, then it’s 10 units big on the X and Z planes and UV mapped so that a texture will cover it completely. Since UV coords are 0…1, that means it will scroll 10X faster than the default Unity cube (which is 1 unit in size) moves.