private void DoPositionField()
{
EditorGUI.BeginChangeCheck();
Rect rect = this.selected.m_Rect;
int x = Mathf.RoundToInt(rect.x);
int y = Mathf.RoundToInt(rect.y);
int z = Mathf.RoundToInt(rect.width);
int w = Mathf.RoundToInt(rect.height);
this.FourIntFields("Position", "X", "Y", "W", "H", ref x, ref y, ref z, ref w);
Rect rect2 = new Rect((float) x, (float) y, (float) z, (float) w);
if (EditorGUI.EndChangeCheck())
{
Undo.RegisterCompleteObjectUndo(this.m_RectsCache, "Change Sprite Position");
this.textureIsDirty = true;
this.selected.m_Rect = this.ClampSpriteRect(rect2);
}
}