How to move quads using script?

I am trying to make a scrolling background with quads to make it suit every resolution.
But since texture type “Advanced” was removed from Unity, I cant find a way to move those quads from script.
Thanks for any help.

Make sure you set the Wrap Mode to Repeat in the Inspector Panel of the texture.

And Change the your line offset.x = speed * Time.deltaTime; for this one offset.x += speed * Time.deltaTime;

Notice the +=

Hi @Lakyn

Moving a quad is not any different than moving any object.

See the manual:

I don’t quite know what you mean by removal of Advanced texture type - are you actually talking about “moving” texture by animating material UV coordinates?

Yeah thank you for reminding @eses. I havent asked clearly. I am trying to animate the background image made as material(attached to a quad object) to be scrolling. I tried it with following script:

public class BGLooper : MonoBehaviour {

public float speed = 0.1f;

private Vector2 offset =;
private Material mat;

void Start () {
    mat = GetComponent<Renderer>().material;
    offset = mat.GetTextureOffset("_MainTex");

void Update () {
    offset.x = speed * Time.deltaTime;
    mat.SetTextureOffset("_MainTex", offset);


And it didnt work…