3. Assigning the Material Instance

Your custom pistol needs to know about the new dissolve Material in order to make use of it. You can assign it to your custom pistol to force it to be used.

Steps

  1. Double Click the GrenadeGunPistol Blueprint to open it in the Blueprint Editor .

  2. Select GrenadeGunPistol(self) in the Components panel

    image alt text

  3. In the Details panel search for Dissolve to easily find the Dissolve Material property.

  4. Click the dropdown menu for the Dissolve Material property to show the Asset Picker and select GrenadeGun_Dissolve_MI. You can use the search box to quickly filter the list.

    image alt text

  5. In the Blueprint Editor toolbar, click Compile to update the Blueprint and click Save to preserve your changes.

Results

That's it, the GrenadeGunPistol, when it is destroyed, will now dissolve to red instead of blue.