I have a custom inspector with a TextArea field, but it does not wrap, which is a real pain to work with. I've tried changing the skin settings, but no luck. I'm trying to do the following during OnInspectorGUI, but to no avail:
var skin : GUISkin = EditorGUIUtility.GetBuiltinSkin(EditorSkin.Inspector);
skin.textArea.wordWrap = true;
I've also tried:
function OnGUI() {
if(GUI.skin.customStyles.Length > 0)
GUI.skin.customStyles[0].wordWrap = true;
}
But no luck either.
Any suggestions?