• Home  / 
  • Unity3D
  •  /  How to use the Unity 2017 SpriteMask component & create a seamless scrolling background

How to use the Unity 2017 SpriteMask component & create a seamless scrolling background

Unity3D SpriteMask & Infinite Scrolling Background

The SpriteMask component in Unity3D 2017 makes it easy to show a sprite through another’s alpha channel.  In this video, I go over the steps required in two minutes.

Once you have the SpriteMask setup, we can make the window scroll infinitely along.. giving the feeling that you’re riding on a high class train.

Here’s the video showing the steps required.

 

 

Resources

I found the background image on OpenGameArt.org here: https://opengameart.org/content/seamless-hd-landscape-in-parts

The train window came from a google image search here: https://www.google.com/search?q=train+window&tbm=isch&source=lnt&tbs=ic:trans&sa=X&ved=0ahUKEwjy_6nY0c3VAhVG8WMKHR82B2IQpwUIHw&biw=2048&bih=1137&dpr=1.25