Hello everyone, I’m new to unreal and I wanted to ask if there was any way to have a button that activates when my laser hits it? I’m using a Niagara particle system.
Hi @Theawsomeman115!
Is the laser itself a Niagara system? If so you should probably try using a “Line Trace by Channel” and use Visibility. Then on your Out Hit variable, check to see if it’s the Button actor, and if it is, cast to the button and off of the blue pin, run any event or function you have inside your button actor!
Hope that helps!
You could use this video to animate and activate the button using a trigger collision that is triggered by the line trace the particle affect “Laser” is attached to.
This video will show you how to shoot the laser it just needs to be adjusted to shoot a laser and not a flame.
I hope this helps you…
This sounds more like a UI pointer thing. Can you confirm what kind of button we’re talking about - a UMG button or a static mesh? If it’s the former, look into a widget interaction component.
Thank you! That seems to have worked!