How to do it...

As we were saying at the beginning of this recipe, the material we are about to create is going to work as a UI element. That being the case, the first step is the creation of our first-ever User Interface! If you haven't dealt with UIs before, make sure to check how they work in the There's more... section of this recipe:

  1. Head over to your favorite spot in the Content Browser and create a new User Interface. These types of assets can be created thanks to the Widget Blueprint resource, so select that when right-clicking and look under the User Interface category.
  2. Open the new widget and select a Scale Box from the Palette tab. Drag it into the main viewport (you'll find it by looking inside the Panel subsection or by typing ...

Get Unreal Engine 4 Shaders and Effects Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.