Hi people,
I have a problem with spawning objects. My goal is to make blueprint to change objects on click. I made widget bp to spawn new object but I cannot destroy the old one and it is spawning a new one on the coordinate beginning spot(?!)
Save the location and if you want it also, the rotation of the old Actor into a variable.
Call Destroy on the Old Actor
Spawn the new Actor using the saved location and rotation.
You may need to adjust the location of spawn depending on the size difference, such as offsetting in the Z so the new object does not intersect the ground.