This tutorial will demonstrate how to programmatically generate a mesh in Unity with C# code. This code was used in my procedural terrain/flight demo. I’m going to show how to make a triangular grid, but you can easily extrapolate this to make square grids and other shapes you need for your Unity projects.