Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Prefabs

Create reusable GameObject templates to use across your projects.
Read time 1 minuteLast updated 10 days ago

Unity's prefab system allows you to create, configure, and store a GameObject complete with all its components, property values, and child GameObjects as a reusable asset. The prefab asset acts as a template from which you can create new prefab instances in the Scene.

Topic

Description

Introduction to prefabsUnderstand what prefabs are and when to use them.
Create prefabsCreate prefab assets in the Unity Editor.
Edit prefabs assetsEdit prefabs in prefab editing mode.
Nest prefab instances in other prefabsInclude prefab instances inside other prefabs.
Create variations of prefabsCreate a set of predefined variations of a prefab.
Overriding prefab instance dataOverride components, data, and GameObjects on prefab instances.
Revert a prefab instance to a GameObjectUnpack a prefab instance to revert the contents of a prefab instance back into a GameObject
Instantiating prefabs at runtimeInstantiate prefabs from your C# runtime application code.
Prefab instance Inspector referenceReference for the prefab instance Inspector.

Additional resources