About the grid of the simulation management game

I’m new to UE5. I want to make a business simulation game. But I’m stuck in the grid adsorption step, I don’t know how to set the map to look like a grid, and I don’t know how to make him follow the grid adsorption when placing objects.
Just like the city skyline, when an object is placed, if there are already other objects, the collision part will turn red.
I flipped through Bilibili and found that I couldn’t find a tutorial for this type of game.
I found Blueprints in the store, but Blueprints are only for 3D objects, and I’m a 2D game.
I hope that my friends in the forum can teach me to solve this core problem, and if there is a relevant video, you can also recommend it to me.
Thanks again