Book Image

Unreal Engine Game Development Cookbook

By : John P. Doran
Book Image

Unreal Engine Game Development Cookbook

By: John P. Doran

Overview of this book

Table of Contents (18 chapters)
Unreal Engine Game Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Animating a menu


You may have created a menu or UI element at some point, but rather than having it static and non-moving, let's spend some time looking at how we can animate the menus by having them fly in and out or animate in some way. This will help add polish to the title as well as enable players to notice things easier as they move in.

Getting ready

Before we start working on this, we need to have a project created and set up. Follow the previous recipe all the way to completion.

How to do it…

  1. Open up the MainMenu blueprint once more and from the bottom-left in the Animations tab, click on the +Animation button and give the new animation a name (MenuFlyIn).

  2. Select the newly-created animation, and you should see the window on the right-hand side brighten up.

    Creating a new animation

  3. Next, click on the Auto Key toggle to have the animation editor automatically set keys that are appropriate for our implementation.

  4. If it's not there already, move the timeline bar (the white line with two orange...