using UnityEngine; using System.Collections; public class PaintMapLine : MonoBehaviour { public int row = 100; public int column = 100; public float size = .5f; public float y = 0; // Update is called once per frame void Update() { Vector3 _start; Vector3 _end; for (int i = 0; i < row + 1; ++i) { _start = new Vector3(0, y, i * size); _end = new Vector3(column, y, i * size); Debug.DrawLine(_start, _end, Color.black); } for (int i = 0; i < column + 1; ++i) { _start = new Vector3(i * size, y, 0); _end = new Vector3(i * size, y, row); Debug.DrawLine(_start, _end, Color.black); } } }