"Preview" Actor position before spawning it

Hello everyone,

I would like to make a system where by pressing a key i get to see the Actor i want to place and than press the same key again to confirm and properly spawning it. Something like in strategy games or games where you can build stuff.

Right now my function directly spawns the item using a line trace.

Any idea how to do this? Any engine function to look at?

Hi,

If you want to see object in the scene for any reason (build, preview, etc.) you should spawn it. I think the best way to do system you are talking about it is spawn Actor in the scene and waiting for player confirmation/decline input. And then add it or destroy.

Best regards,