Scrolling background(s)

Dear All,

Can anyone suggest a way to do a scrolling background(s)?

Where the spaceship will be stand on the screen, but the background will keep scrolling that will give the feeling that the spaceship itself is moving.

Any Advice?

How about using a tall texture with your background scene on it and its tiled in the verticle, then just animate its UV offset so the texture slides across a plane mesh or something.

You could zoom in and out, speed it up etc.

Thanks for the reply.

but i’m newbie here can you please explain more, maybe with some example?

Can anyone explain to me how can I animate the UV offset of a textuer?

is there an option in Unity to do this or do I need to do it in script?

Please advice.

Merry Christmas. This is from a game framework I plan to release soon:

using UnityEngine;
using System.Collections;

public class Scroller : MonoBehaviour 
{
	public Vector2 scrollSpeed;				// Speed to scroll the material in each direction
	
	// Update is called once per frame
	void Update () 
	{
		renderer.material.mainTextureOffset += scrollSpeed * Time.deltaTime;
	}
}

Just adjust the X and Y of Scroll Speed in the inspector to set the speed and direction of scrolling.