Skip to content
KnowledgeCity

Unity: Prefabs

Learn how to work with basic shapes, and then create a Prefab
Preview the first lesson free — get full access to all 4 lessons.
Course: On-Demand
Beginner Provider Ken Geary  4 Lessons ·  25m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you’ll work with the built-in Unity shapes grouped together to create a Prefab. Prefabs are pre-made game objects or collections that can be reused multiple times and even used in different scenes and projects. Prefabs can contain multiple components such as animations, sounds, meshes, materials, textures and C# scripts. First, you will learn how to add GameObjects into your scene, such as a Sphere and Cylinder. Then we’ll show you how to scale and place objects to create a simple Hovercraft and group all the shapes into a parent empty GameObject.

Later we’ll demonstrate how to create materials to create basic color and metallic surfaces. Then you will create a Prefab from the group and see how you can work with the Prefab instances in the scene. You will learn how Prefab instances can be globally changed by editing the main Prefab, making it easy to implement changes quickly.

What You'll Learn

  • Add GameObjects such as a Sphere and Cylinder into your Unity scene
  • Scale and place built-in Unity shapes to build a simple Hovercraft
  • Group shapes together under a parent empty GameObject
  • Create materials for basic color and metallic surfaces
  • Create a Prefab from a group of objects and work with Prefab instances
  • Apply global changes to Prefab instances by editing the main Prefab

Key Takeaways

  • Prefabs are pre-made game objects or collections that can be reused multiple times across different scenes and projects.
  • A Prefab can contain multiple components such as animations, sounds, meshes, materials, textures and C# scripts.
  • Multiple built-in Unity shapes can be grouped under a parent empty GameObject before being turned into a Prefab.
  • Editing the main Prefab globally changes its instances in the scene, making it easy to implement changes quickly.

Frequently Asked Questions

What will I build in this course?

You will use built-in Unity shapes, such as a Sphere and Cylinder, scaling and placing them to create a simple Hovercraft, then group the shapes and turn them into a reusable Prefab.

What are Prefabs in Unity?

Prefabs are pre-made game objects or collections that can be reused multiple times and even used in different scenes and projects, and they can contain components such as animations, sounds, meshes, materials, textures and C# scripts.

Why use Prefab instances?

Prefab instances can be globally changed by editing the main Prefab, making it easy to implement changes quickly across the scene.

What lessons does this course include?

The course covers Working With GameObjects, Creating Materials, and Creating and Using Prefabs in two parts.

What skills does this course cover?

It covers working with custom objects, game programming, prefabrication, the Unity container, UnityScript, and the Unity engine.