unity 在Scene中,绘制一条直线

分类: unity3d |
http://s5/mw690/005N7Rnmzy7bG8VbWss04&690在Scene中,绘制一条直线" TITLE="unity 在Scene中,绘制一条直线" />
using UnityEngine;
using System.Collections;
public class Player : MonoBehaviour {
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnDrawGizmos()
{
Gizmos.color = Color.red;
Gizmos.DrawLine(Vector3.zero,new Vector3(1,1,1));
}
}