offset texture in "Y" only

I have a script that is offsetting my texture in “Y” and “X” and I only want it to offset in “Y” can someone please help me. I just want some fountain water to look as if its falling. Here is what I’m using. I’m not a programmer at all so I don’t even know what to look for.

// Scroll main texture based on time

//@script ExecuteInEditMode

var scrollSpeed = 0.1;

function Update ()
{
if(renderer.material.shader.isSupported)
Camera.main.depthTextureMode |= DepthTextureMode.Depth;

var offset = Time.time * scrollSpeed;
renderer.material.SetTextureOffset (“_BumpMap”, Vector2(offset/-7.0, offset));

renderer.material.SetTextureOffset (“_MainTex”, Vector2(offset/10.0, offset));
}

Should be sort of obvious… you’re putting in an ever-incrementing value into both the U and V coordinates. You only want to be increasing the V coordinate…

i.e.

renderer.material.SetTextureOffset (“_BumpMap”, Vector2(0, offset));
renderer.material.SetTextureOffset (“_MainTex”, Vector2(0, offset));

I posted this in the wrong spot. Sorry. And its not obvious because it does not say “U” or “V” it only says Vector2 offset. I’m not a programmer at all.

Vector2 is just a representation of 2 numbers for a lot of things. You can use it for 2D coordinates, holding 2 values, or uv coordinates. It’s useful over using 2 separate numbers because it has a number of features, such as being able to subtract or multiply them for example.

i changed the values to zero and the water seemed to flow inn the correct direction however now the x offset is set to infinity and stretching the texture out. I just want the texture to flow in the y direction. I dont want the x offset to be affected at all.