Place Objects Like Rust or Ark

How would you be able to create object placement like in rust or ark so that the item you want to place follows the camera and you are able to rotate the object until its properly placed by say left clicking.

I’m actually working on an similiar game with these options and, but Im placing already existing Objects, that i picked up before, but the placing would be pretty much the same. You can place an Object by creating a collision box set to only overlap around the Object you want to place and if it gets an Overlap with the Landscape you can attach the Actor to the Landscape(set to world position, not relative position) and it should stay there. To rotate it you can cast to it from the Firstpersoncharacter. Create an event that fires when you press the left mouse button and then cast to the object you want to rotate and create set the rotation.

Good Luck