Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Unity Basics!
You have completed Unity Basics!
Preview
One set of pipes to dodge isn’t very fun. Now we’ll learn about Prefabs and how to use them to continuously spawn our pipes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
they're completely destroyed
and we lose any way of getting them back.
0:00
To save us from extra work,
I'd like to introduce you to prefabs.
0:03
Prefabs, or prefabricated game
objects, are essentially reusable game
0:07
object templates that can be stored
as assets in your project.
0:12
They allow you to create, configure,
and store a complete game
0:16
object with all its components,
properties, and child objects,
0:20
from which you can create
multiple instances throughout your scenes.
0:24
This also allows us to instantiate them
during runtime with our code.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up