UV offset?

am new to unity and already done some tutorials and am quite impressed by it…right now am stuck :S im trying to look everywhere but cant find the answer for it. what am trying to do is the following:

the cube scale is x=7 y =4 with a material on it and when it scroll at the end of each material length it will load another material. Thx!

This is my script

textures offsets are within range of 0…1 for one tiling (unless you’ve got a scale/tile on the material).

So you should be able to do what your doing now ( but use a += instead of = )

and check if mainTextureOffset.x is <= 1f to go back a material and >= 1f to go forward one.

Also remove the timescale stuff.

Use += on right key and -= on left key ( on mainTextureOffset )

thx for the info now it does change but i want it to change…like a sliding images…eg: i have 3 pictures in a row as soon as the 1st one slide you start seeing the second one and so on…

really appreciated!

Wont be able to do that with uv offsets alone. You’re best bet is to instead just put all 3 pictures in one texture, then on the material set the x tiling to 0.333333333333 ( or whatever the count of pictures are inverted )