How to do it...

Seeing as we want to add visual variety to multiple instances of the same model, the first step in this recipe will be the creation of those assets. Let's see how we can do that:

  1. Create a blueprint somewhere within your Content Browser. Pick Actor as the parent class, and double-click on it to open the Blueprint Editor.
  2. Click on the Add Component button in the top-left corner of the editor and select an Instanced Static Mesh component.
  1. Drag and drop the new Instance Static Mesh component on top of the Default Scene Root and look at its Details panel.
  2. With our new component selected, set the Static Mesh to whatever you want to use for this recipe. I've gone with SM_Tank in this case.
  3. Assign a material to the Element 0 drop-down ...

Get Unreal Engine 4 Shaders and Effects Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.