Im having trouble with my custom unity editor.
I have created a textarea in my editor script, but it acts strange when i try to change the value via code, while also selecting it.
textEditor.text = EditorGUILayout.TextArea(textEditor.text, GUILayout.MinHeight(100));
The yellow buttons at the bottom are set up to add a string of text to the textarea. For example, “bold” adds “ “.
But when i press the buttons, the text does not show up in the textarea.
I know the problem isn’t the code that adds the text, as the added text eventually appears in the textarea, once i deselect the textarea.
I have tried looking for some way to either automatically deselect the textarea or redraw the editor all together. I tried Repaint(), but im not sure im doing it right.
This is my first go at a custom editor, so i dont have a lot of ideas. I hope you can help me 😀