"Destroy" a texture sample

Quick question, I’m kinda new to UE5 (still a lot of stuff to learn) and I’m making a “shooting range simulator” and I wanted for the light fixtures to turn off whenever you shoot at them (Just because).

In the model I’m using, there’s an Emissive texture, and when the blueprint calls to destroy the light, the emissive color is still “lit up”. Is it possible in any way to disable or destroy the texture sample for the emissive texture when i do that?

You can create a float (or bool) parameter in the lamp material to control emissive, then create a dynamic material instance in blueprint, apply it to the mesh (if all the lights work at the same time, then one material can be applied to all meshes), and then when you want to turn off the light, set the parameter to 0 on the material instance.
Or you can just create a copy of the lamp material and turn off emissive in it, but this is bad practice in my opinion, as it is unnecessary duplication.

1 Like

(post deleted by author)