public static object DrawField(GUIContent _content, Type _fieldType, object _value) { if (typeof(IList).IsAssignableFrom(_fieldType)) { return(EditorGUILayoutExtension.DrawArrayField(_content, null, _fieldType, _value)); } return(EditorGUILayoutExtension.DrawSingleField(_content, null, _fieldType, _value)); }
private static object DrawField(GUIContent _content, FieldInfo _fieldInfo, object _value) { if (typeof(IList).IsAssignableFrom(_fieldInfo.FieldType)) { return(EditorGUILayoutExtension.DrawArrayField(_content, _fieldInfo, _fieldInfo.FieldType, _value)); } return(EditorGUILayoutExtension.DrawSingleField(_content, _fieldInfo, _fieldInfo.FieldType, _value)); }