UnityEditor.SpriteRendererEditor.FlipToggle C# (CSharp) Method

FlipToggle() private method

private FlipToggle ( Rect r, string label, UnityEditor.SerializedProperty property ) : void
r UnityEngine.Rect
label string
property UnityEditor.SerializedProperty
return void
        private void FlipToggle(Rect r, string label, SerializedProperty property)
        {
            bool boolValue = property.boolValue;
            EditorGUI.showMixedValue = property.hasMultipleDifferentValues;
            EditorGUI.BeginChangeCheck();
            int indentLevel = EditorGUI.indentLevel;
            EditorGUI.indentLevel = 0;
            boolValue = EditorGUI.ToggleLeft(r, label, boolValue);
            EditorGUI.indentLevel = indentLevel;
            if (EditorGUI.EndChangeCheck())
            {
                Undo.RecordObjects(base.targets, "Edit Constraints");
                property.boolValue = boolValue;
            }
            EditorGUI.showMixedValue = false;
        }