While there are different types of Actors that ship with Unreal as part of the default installation, you will find yourself needing to create custom Actors at some point during your project's development. This might happen when you need to add functionality to an existing class, combine Components in a combination that's not present in the default subclasses, or add additional member variables to a class. The following two recipes demonstrate how to use either composition or inheritance to customize Actors.
Creating a custom Actor in C++
Getting ready
Make sure that you have installed Visual Studio and Unreal 4 as per the recipe in Chapter 1, UE4 Development Tools. You'll also need to have an existing project...