Before we can shoot any projectiles, we'll need a prefab reference, so let's create that now, as follows:
- Select Create | 3D Object | Sphere in the Hierarchy panel and name it Bullet.
- Change its Scale to 0.15 in the X, Y, and Z axes in the Transform component.
- Use the Add Component button to search and add a Rigidbody component, leaving all default properties as they are.
- Create a new material in the Materials folder using Create | Material, and name it Orb_Mat:
- Change the Albedo property to a deep yellow.
- Drag and drop the material onto the Bullet GameObject.
- Drag the Bullet into the Prefabs folder and delete it from the Hierarchy, as follows:
You created and configured a bullet prefab GameObject that can be instantiated as...