예제 #1
0
 protected void OnDrawGizmos()
 {
     GizmosColorUtility.NewStack();
     EditorHelper.OnSceneGUIDrawTitle(this);
     DoDrawGizmos();
     GizmosColorUtility.Revert();
 }
예제 #2
0
 private void OnDrawGizmos()
 {
     GizmosColorUtility.NewStack();
     //Gizmos.DrawSphere(transform.position, 0.02f);
     if (space == Space.Self)
     {
         GizmosUtility.DrawArrow(transform.position, transform.forward, Color.blue);
         GizmosUtility.DrawArrow(transform.position, transform.right, Color.red);
         GizmosUtility.DrawArrow(transform.position, transform.up, Color.green);
     }
     else
     {
         GizmosUtility.DrawArrow(transform.position, Vector3.forward, Color.blue);
         GizmosUtility.DrawArrow(transform.position, Vector3.right, Color.red);
         GizmosUtility.DrawArrow(transform.position, Vector3.up, Color.green);
     }
     GizmosColorUtility.Revert();
 }
예제 #3
0
 private void OnDrawGizmos()
 {
     GizmosColorUtility.NewStack();
     DoDrawGizmos();
     GizmosColorUtility.Revert();
 }