MMORPG进入主城
编辑器中显示,游戏视图不显示
Mesh mesh = null;
void Start ()
{
this.mesh=this.GetComponent<MeshFilter>().sharedMesh;
}
#if UNITY_EDITOR
void OnDrawGizmos()
{
Gizmos.color = Color.green;
if (this.mesh!=null)
{
Gizmos.DrawMesh(this.mesh, this.transform.position + Vector3.up * this.transform.localScale.y * .5f, this.transform.rotation, this.transform.localScale);
}
UnityEditor.Handles.color = Color.red;
UnityEditor.Handles.ArrowHandleCap(0, this.transform.position, this.transform.rotation, 1f, EventType.Repaint);
}
#endif