Place in a grid

I was wondering if there was a way to place down a cube in a grid pattern. Kinda like the way minecraft does it. NO I’m not making a minecraft clone.

C#

I’m nots ure what exactly the question here is… Of course you can set down a cube in a grid pattern, just keep the transform xyz axis to whole numbers for example. Also, remember to hold CTRL while moving gameobjects in the editor so they snap to whole coordinate numbers.