Example #1
0
 void OnDrawGizmos()
 {
     if (generator && generator.EnableDebug)
     {
         Gizmos.color = Color.white;
         Gizmos.DrawWireCube(generator.ChunkToWorldCenter(chunkPosition), Vector3.Scale(generator.CellSize, generator.ChunkScale));
     }
 }