Hour 12. Prefabs

What You’ll Learn in This Hour:

• The basics of prefabs

• How to work with custom prefabs

• How to instantiate prefabs in code

A prefab is a complex object that has been bundled up so that it can be recreated over and over with little extra work. In this Hour, you will be learning all about prefabs. You will star by learning all about prefabs and what they do. From there you will learn how to create prefabs in Unity. You will learn about the concept of inheritance. You will finish by learning how to add prefabs to your scene both through the editor and through code.

Prefab Basics

As mentioned above, a prefab is a special type of asset that bundles game objects up. Unlike simply nesting objects in the hierarchy view, a prefab ...

Get Unity Game Development in 24 Hours, Sams Teach Yourself® 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.