private void ToggleFreezeRotation(RigidbodyConstraints2D constraints, GUIContent label, int z)
{
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
Rect position = GUILayoutUtility.GetRect(EditorGUIUtility.fieldWidth, EditorGUILayout.kLabelFloatMaxW, 16f, 16f, EditorStyles.numberField);
int id = GUIUtility.GetControlID(0x1c3f, FocusType.Keyboard, position);
position = EditorGUI.PrefixLabel(position, id, label);
position.width = 30f;
this.ConstraintToggle(position, "Z", constraints, z);
GUILayout.EndHorizontal();
}
}