I’m working on a project that uses blocks of text up to 3500 words. Unfortunately I just received this error message.
Optimized GUI Block text buffer too large. Not appending further text.
UnityEditor.DockArea:OnGUI()
I tried breaking up my text in to smaller chucks but I’m still getting the error message.
Here’s the basic script.
function OnGUI () {
GUI.skin = mySkin;
// Begin the ScrollView
scrollPosition = GUI.BeginScrollView (Rect (50, 60, Screen.width-100, Screen.height-130), scrollPosition, Rect (0, 0, Screen.width-120, CompleteLength));
// Story
GUI.Label (Rect (0, 0, Screen.width-120, StoryLength), StoryText);
// Story Cont
GUI.Label (Rect (0, StoryLength + 50, Screen.width-120, StoryLength1), StoryText1);
// Story Cont
GUI.Label (Rect (0, StoryLength + StoryLength1 + 100, Screen.width-120, StoryLength2), StoryText2);
//Icon
GUI.Label (Rect (Screen.width/2-92, StoryLength + StoryLength1 + StoryLength2 + StoryIconSpread, 64, 64), BikoIconBlack);
//Author Bio
GUI.Label (Rect (0, StoryLength + StoryLength1 + StoryLength2 + StoryBioSpread, Screen.width-120, BioLength), AuthorBio);
// End the ScrollView
GUI.EndScrollView();
//Title text
GUI.Label (Rect (50 , 10, 500, 50), StoryTitle, customGuiStyle);
//Home
if (GUI.Button (Rect (Screen.width/2-50,Screen.height - 100, 128, 128), MapIcon)) {
Application.LoadLevel ("MainMenu");
}
}
Any suggestions or workarounds?