Hello all,
I am trying to create a simple rich text editor for in game use and have run into some funny behavior.
When using the following GUI code, the cursor seems to have issue correctly navagating around the rich text formatting.
What I have noticed happening when I move the carrot with my arrow keys ( starting at the very first character ) is that it skips the first word, then moves onto the rich text and parses it letter by letter as expected. followed with halting at the third word for a few clicks then proceeding to parse the third word correctly.
Any ideas how to fix this issue?
void OnGUI() {
GUIStyle textStyle = new GUIStyle();
textStyle.normal.textColor = Color.white;
textStyle.wordWrap = true;
textStyle.richText = true;
GUI.TextArea(new Rect(20,20,200,50), "normal green normal", textStyle);
}
↧