ChangeCheck() public static method

Check if any control was changed inside a block of code.
public static ChangeCheck ( System.Action content ) : bool
content System.Action /// The callback to invoke between start and end change check. ///
return bool
 /// <summary>
 /// Draws the editable property.
 /// </summary>
 /// <param name="position">
 /// Rectangle on the screen to use for the property GUI.
 /// </param>
 /// <param name="property">
 /// The SerializedProperty to make the custom GUI for.
 /// </param>
 /// <param name="label">
 /// The label of this property.
 /// </param>
 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
 {
     position.height = cls.height;
     using (new EditorGUI.PropertyScope(position, label, property))
     {
         var input     = string.Empty;
         var hasChange = EditorGUIEx.ChangeCheck(() =>
         {
             input = EditorGUI.TextArea(position, property.stringValue, this.style);
         });
         if (hasChange)
         {
             property.stringValue = input;
         }
     }
 }