private void DrawElement( Rect position, SerializedProperty property, GUIContent label, GUIStyle labelStyle) { var rect = new Rect( position.x, position.y, position.width, EditorGUIUtility.singleLineHeight); EditorGUI.LabelField(rect, label, labelStyle); rect = EditorGUIUtil.NextGuiElementPosition(rect); rect.height = m_MaterialControl.GetPropertyHeight(property, GUIContent.none); m_MaterialControl.OnGUI(rect, property, GUIContent.none); }