public override void OnInspectorGUI()
{
base.serializedObject.Update();
EditorGUILayout.PropertyField(this.m_Sprite, Contents.spriteLabel, new GUILayoutOption[0]);
EditorGUILayout.PropertyField(this.m_Color, Contents.colorLabel, true, new GUILayoutOption[0]);
this.FlipToggles();
if (this.m_Material.arraySize == 0)
{
this.m_Material.InsertArrayElementAtIndex(0);
}
Rect position = GUILayoutUtility.GetRect(EditorGUILayout.kLabelFloatMinW, EditorGUILayout.kLabelFloatMaxW, (float) 16f, (float) 16f);
EditorGUI.showMixedValue = this.m_Material.hasMultipleDifferentValues;
Object objectReferenceValue = this.m_Material.GetArrayElementAtIndex(0).objectReferenceValue;
Object obj3 = EditorGUI.ObjectField(position, Contents.materialLabel, objectReferenceValue, typeof(Material), false);
if (obj3 != objectReferenceValue)
{
this.m_Material.GetArrayElementAtIndex(0).objectReferenceValue = obj3;
}
EditorGUI.showMixedValue = false;
base.RenderSortingLayerFields();
this.CheckForErrors();
base.serializedObject.ApplyModifiedProperties();
}