protected void OnDrawGizmos() { GizmosColorUtility.NewStack(); EditorHelper.OnSceneGUIDrawTitle(this); DoDrawGizmos(); GizmosColorUtility.Revert(); }
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(); }
private void OnDrawGizmos() { GizmosColorUtility.NewStack(); DoDrawGizmos(); GizmosColorUtility.Revert(); }