Getting ready

Similar to the previous recipe, we will create everything from scratch in Unity; you don't have to prepare anything beforehand. You can open the provided example Unity project and go to the Chapter 03 2D and user interface animation\Recipe 06 Creating a swipe transition with the animation view directory. You will find an Example.unity scene there. Play the game and press space bar to see the swipe transition effect.

Get Unity 5.x Animation Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.