2D Parallax Background

I would like to made a 2D scrolling game (up,down,left,right) which uses parallax with its background. So the player would appear to move slowly across of it. Any pointers on how to go about accomplishing this task?

Multiple "planes" (at least the front of which with transparency) at different depths, "moving" at different speeds relative to the camera.

You "planes" could be planes or cylinders or spheres as you like.

"Moving" your background is up to your discretion. If using tiled textures, then you would simply change the offset. If using the actual geo, you would move them at different speeds.

An alternative setup is to have a second camera render your different depth to a RenderTexture, but that is Pro-only and somewhat overkill.

http://answers.unity3d.com/questions/21795/how-to-copy-camera-rotation-plus-custom-setup-for-parallax-scrolling

Enjoy =).

I'd personally make a cylinder big enough, apply the background, and just have the cylinder to rotate, but then again, that'd be a horrible way of doing it, haha.

Some great answers here. I’m gonna try adding 3 planes, one behind the other and just adjust the speed of them scrolling depending on their position relative to the camera. Closest scrolls fastest, etc… Thanks for the tips guys and gals!

Try using seamless repeatable textures for backgrounds and foregrounds and render them on a quad scaled to the camera’s vieport. This technique is very lightweight and easy to set up.
This one might be usefull: NEBULA Orthographic Parallax Example Project on Vimeo

Unity Gyroscope Parallax

I made the plugin for that. Easy integration. Zero lines of code are needed to make it work, also Fake Gyroscope is supported for testing purposes in Unity Editor.