The Blueprint class

As already mentioned, scripting for each key cube would just be a tedious and time-consuming task. With a Blueprint class, you would need to do all the scripting and everything else only once. A Blueprint class is an entity that contains actors (static meshes, volumes, camera classes, trigger box, and so on) and functionalities scripted in it. Looking at our example once again of the lamp turning on/off, say you want to place 10 such lamps. With a Blueprint class, you would just have to create and script once, save it, and duplicate it. This is really an amazing feature offered by UE4.

Creating a Blueprint class

To create a Blueprint class, click on the Blueprints button in the Viewport toolbar, and in the dropdown menu, select ...

Get Unreal Engine: Game Development from A to Z 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.