Swapping a Material
Once you have placed the Set Material node, notice that it is already connected via its input execution pin to the Event Hit node's output execution pin. This Blueprint now fires the Set Material Action whenever the Blueprint's Actor hits another Actor. However, we haven't yet set up the Material that will be called when the Set Material Action is called. Without setting the Material, the Action will fire but won't produce any observable effect on the Cylinder target.
To set the Material that will be called, click on the drop-down field labeled Select Asset underneath Material, which is inside the Set Material node. In the asset finder window that appears, type red in the search box to find the TargetRed Material we created ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access