Part 2 - Make a flying obstacle prefab
Estimated Time: 20 Minutes
Summary
In this tutorial, you’ll add physics to your obstacle so it falls, bounces, and interacts with the screen borders. Then, you’ll turn it into a prefab — a reusable template that lets you quickly create more obstacles later.
Go to Tutorial
Click here to access the full tutorial on Unity Learn
Checklist
- Created an obstacle object (square/circle).
- Added a Rigidbody 2D for physics.
- Added a Collider 2D for collisions.
- Turned the object into a Prefab.