-
Book Overview & Buying
-
Table Of Contents
Unreal Engine 4 Scripting with C++ Cookbook
By :
While there are a number of 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 not present in the default subclasses, or add additional member variables to a class. The next two recipes demonstrate how to use either composition or inheritance to customize Actors.
Make sure you have installed Visual Studio and Unreal 4 as per the recipe in Chapter 1, UE4 Development Tools. You'll also need to have either an existing project, or create a new one using the Unreal-provided wizard.
Open up your project within the Unreal Editor, then click on the Add New button in Content Browser:

Select New C++ Class...

In the dialog that opens, select Actor from the list:

Give your Actor a name, such as MyFirstActor...
Change the font size
Change margin width
Change background colour