孙广东 2015.6.20 先贴一个 Grid网格吧。 可以标记一个对象的正方形范围等 拖拽到指定的对象就OK了。 using UnityEngine;using System.Collections;// DrawGizmoGrid.cs// draws a useful reference grid in the editor in Unity. // 0
TestGizmos.cs using UnityEngine; using System.Collections; public class TestGizmos : MonoBehaviour { //用于保存系统的初始颜色,方便用完时返回 public Color beginColor; //定义射线 private Ray ray; //接收射