I haven’t been using Unreal Engine for long so I’m pretty new to blueprints.
I have a first person view game where I have randomly spawning objects in the scene.
Would anyone happen to know what could I write in a blueprint so I could delete these objects
during game by clicking on them?
In order to delete the object/actor, you’ll use the node Destroy Actor.
You can look at this previous example of mine to track the actor you’re hovering over, and clicking it. Instead of setting the material, you’ll destroy the referenced actor.
Exactly. Create a variable ‘Active Pawn’ (feel free to name this whatever you wish) which is set on highlight/hit test (the middle row). Then you access it when you need to call Destroy Actor…