Creating the target Blueprint
We now have a Cylinder in the world, as well as the Material we want to apply to the Cylinder when it is shot. The final piece of the interaction is the game logic that evaluates that the Cylinder has been hit, and then changes the Material on the Cylinder to our new red Material. To create this behavior, we must convert our Cylinder into a Blueprint. To do so, follow these steps:
- Make sure you have the
CylinderTarget
object selected in the Level. In the Details panel, click on the icon on the right of the Add button:
- You will then see a window with the title of Create Blueprint From Selection. Rename the Blueprint
BP_CylinderTarget
. In the Path field, select the/Game/FirstPersonBP/Blueprints
folder. In Creation Method, use the New Subclass option. The StaticMeshActor parent class is already selected because it is the parent class of the Cylinder...