public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor) { TCP2_GUI.Header("OUTLINE NORMALS", "Defines where to take the vertex normals from to draw the outline.\nChange this when using a smoothed mesh to fill the gaps shown in hard-edged meshes."); Rect r = EditorGUILayout.GetControlRect(); r = EditorGUI.IndentedRect(r); int index = GetCurrentIndex(prop); EditorGUI.BeginChangeCheck(); index = TCP2_GUI.RadioChoiceHorizontal(r, index, labels); if (EditorGUI.EndChangeCheck()) { SetKeyword(prop, index); } }