14 [AttributeUsage(AttributeTargets.Property)]
17 public int FontSize {
get;
private set; }
25 public override void DrawEditor(
UnityEngine.Object target, FieldInfo field, SerializedProperty property)
27 throw new NotImplementedException();
30 public override void DrawEditor(
UnityEngine.Object target, PropertyInfo prop)
32 string propValue = (string)prop.GetValue(target, null);
33 EditorGUILayout.LabelField(SplitCamelCase(prop.Name), EditorStyles.miniBoldLabel);
34 GUIStyle textAreaStyle = EditorStyles.textArea;
37 textAreaStyle.fontSize = FontSize;
39 propValue = EditorGUILayout.TextArea(propValue, textAreaStyle);
40 prop.SetValue(target, propValue, null);
TextAreaProp(int fontSize=-1)