Hi, I was having no luck in unity answers, thought this may be the best place to come instead.
I’ve made a window, that contains a textArea (that holds a large body of text)
The textArea is in a scrollView, and my problem was that I could scroll on to infinity… So I put in a math.clamp and set it to the height of the textarea.
This is working fine… until it includes my largest body of text. Then it get’s it wrong.
Is there a limit to a text area?
Is there something i’m doing wrong? Or another way to go about this.
Here is the full function for my window
Thank you for any help!
void noteWindowTwo(int windowId){
tempRect = GUILayoutUtility.GetRect (new GUIContent(noteList[index].noteText), noStyle);
GUI.FocusControl ("Play Audio");
GUILayout.BeginScrollView(scrollPosition, GUILayout.Width(noteWindowTwoWidth),
GUILayout.MaxHeight(noteWindowTwoHeightRect - 60)
);
GUILayout.TextArea (noteList[index].noteText);
GUILayout.EndScrollView();
GUI.SetNextControlName ("Play Audio");
GUI.Button (new Rect (10, noteWindowTwoHeightRect - 30 , 350, 25), "Play Audio");
}