Creating a grid mesh programmatically in Unity 3D

Standard