public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor) { FunDream_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 = FunDream_GUI.RadioChoiceHorizontal(r, index, labels); if (EditorGUI.EndChangeCheck()) { SetKeyword(prop, index); } }
public override void OnGUI(Rect position, MaterialProperty prop, string label, MaterialEditor editor) { position.y += 2; FunDream_GUI.Header(position, header); }