We'll begin by making a few objects we can pick up. Let's start with a simple cube:
- Right-click in your project's Blueprints directory in your content browser and select Create Basic Asset |Â Blueprint Class.
- This time, instead of selecting one of the common classes as its parent class, expand the All Classes entry at the bottom of the Pick Parent Class dialog.
- Select Static Mesh Actor:
- Name it BP_PickupCube.
- Open up BP_PickupCube.
You can see that it inherited a Static Mesh Component.
We could just as easily have created an Actor Blueprint and added a Static Mesh component, but it's a good idea to get in the habit of choosing your parent classes appropriately when you're building a new asset. Don't reinvent things if you don't have to.
- Set the Static Mesh property of Static Mesh Component ...