0
0
Unityframework~5 mins

Prefabs and reusable objects in Unity - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a prefab in Unity?
A prefab is a reusable game object template that you can create once and use many times in your scenes. It helps keep things organized and consistent.
Click to reveal answer
beginner
How do prefabs help in game development?
Prefabs let you create objects once and reuse them multiple times, saving time and making it easy to update all copies by changing the original prefab.
Click to reveal answer
intermediate
What happens when you modify a prefab instance in a scene?
You can override properties on the instance without changing the original prefab. But if you update the prefab asset, all instances update unless overridden.
Click to reveal answer
beginner
How do you create a prefab in Unity?
Drag a game object from the scene hierarchy into the Project window. This creates a prefab asset you can reuse.
Click to reveal answer
intermediate
Can prefabs contain other prefabs?
Yes, prefabs can be nested. This means a prefab can include other prefabs inside it, making complex reusable objects.
Click to reveal answer
What is the main benefit of using prefabs in Unity?
ACreate 2D sprites only
BMake the game run faster
CReuse objects easily and update all copies at once
DAutomatically write code for you
How do you create a prefab from a game object in Unity?
ARight-click and select 'Create Prefab' in the scene
BDrag the object from the scene to the Project window
CUse the 'File > New Prefab' menu
DDrag the object from Project to scene
What happens if you change a prefab asset after creating instances?
AOnly new instances reflect changes
BThe prefab asset deletes automatically
CInstances stay the same forever
DAll instances update to match the prefab changes
Can you override properties on a prefab instance without changing the prefab asset?
AYes, you can override instance properties
BNo, all changes affect the prefab asset
COnly if you duplicate the prefab
DOnly in 2D projects
What is a nested prefab?
AA prefab inside another prefab
BA prefab with no components
CA prefab saved outside the project
DA prefab that cannot be reused
Explain what a prefab is and why it is useful in Unity game development.
Think about making copies of a toy that you can change all at once.
You got /3 concepts.
    Describe the process to create and use a prefab in a Unity project.
    Imagine saving a model to reuse it many times.
    You got /3 concepts.