示例#1
0
        private void OnDrawGizmos()
        {
            GizmosEx.PushMatrix(this.transform.localToWorldMatrix);
            GizmosEx.PushColor(Color.red);
            GizmosEx.DrawXYWirePlane(this.Width, this.Height);
            GizmosEx.PopColor();
            GizmosEx.PopMatrix();
            GizmosEx.PopMatrix();

            GizmosEx.PushColor(Color.cyan);
            GizmosEx.DrawArrow(this.LastProjectedPoint, this.LastProjectedPoint + this.LastProjectedVector);
            GizmosEx.PopColor();
        }