O'Reilly logo

Unity Game Development in 24 Hours, Sams Teach Yourself® by Mike Geig

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

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 ...

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