Parallax for Dummies

An enlightening guide on how to create a simple parallax effect in Unity. Using parallax is a really cool way to breathe life into your games.

Welcome to the enlightening guide on how to create a simple parallax effect in the Unity editor. A parallax effect is an apparent change in the direction of an object caused by a change in observational position that provides a new line of sight. In Unity, we'll try and create this effect using the camera as the point of perspective that is changing. Basically, as the camera moves around our scene, we will make multiple images appear to be moving at different speeds. Luckily, this is an incredibly easy and impressive effect to implement in the Unity editor.


First things first, we're going to need a sweet environment to bring to life with our Unity skills. Being the thrifty game designers we are, let's head to the internet. Search for *parallax* on a site that has images free for commercial use like these on Next, find an appropriate set of images, or an image you can cut up with your favorite image processor to make. Grab your own, or download the example we use in our main menu for Aurora TD.

Unzip the intriguing "transition_01-mixed composition" set of images to your desktop. Note that the images are already cut out for you. This will save lots of work, great! Now, for each image in your composition, make a new plane and name it accordingly. I used P-0n for my names. a couple mountains, a gradient, and three foreground images. If the images don't come in order, you will have to figure out which order they go yourself. open up each picture in windows photo viewer(or be hardcore and do it in unity) and piece together which one goes where, then name them accordingly with 01 being the closest. Take picture 01 and apply it to your plane 01. Set the plane's position in your inspector at 0,0,0. Then adjust your camera to get a good view of it.

Using parallax is a really cool way to breathe life into your games. It's been used in hundreds of places. League of Legends and Guild Wars 2, for example, use parallax in their videos as a low cost way to animate cutscenes.

See It in Action in Aurora Tower Defense

For the source, check out the project on Github.

Recommended posts

We have similar articles. Keep reading!

Ship Movement Tutorial

Video tutorial about ship and camera movement in a rail shooter built with Unity3d.

Tower Defense Tutorials Part 2

The second video tutorial of a series which takes you through the process of building a tower defense game.

A* Pathfinding Visualization

See a few video examples of a Unity program that visualizes A* pathfinding in a user friendly way with a tracing option.

Scurvy Siege Dev Log 1

Introducing a new project from Final Parsec's. Scurvy Siege takes piece from our past games to make a great new experience in the tower defense genre.


Log in or sign up to leave a comment.