O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Archetypes and Prefabs

In this chapter, we will be covering the following recipes:

  • Construct a leaking pipe prefab
  • Adding particles to our prefab
  • Adding audio effects to our prefab
  • Create a PointLight archetype
  • Create a subarchetype from an archetype

Introduction

As a programmer, one of your tasks is to assist the level designers. This can be done in a number of ways, but one of the most useful ways is to create what are known as prefabs and archetypes. By creating templates for objects and actors and only exposing the variables that a designer will find to be useful, you can make your work, and that of a designer, far more efficient.

So with that, let's talk about prefabs.

Prefabs

A prefab is a combination of multiple actors into one unit. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required