Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Sebas · Dec 29, 2009 at 06:10 AM · guierror

Error: Optimized GUI Block text buffer

Hello! I get the following error message which I can't find any information about:

Optimized GUI Block text buffer too large. Not appending further text. UnityEngine.GUIStyle:Internal_Draw(IntPtr, Rect, String, Texture, Boolean, Boolean, Boolean, Boolean) UnityEngine.GUIStyle:Internal_Draw(IntPtr, Rect, String, Texture, Boolean, Boolean, Boolean, Boolean) UnityEngine.GUIStyle:Draw(Rect, GUIContent, Int32, Boolean) UnityEditor.EditorGUI:DoTextField(RecycledTextEditor, Int32, Rect, String, GUIStyle, String, Boolean&, Boolean, Boolean, Boolean) UnityEditor.EditorGUI:TextField(Rect, GUIContent, String, GUIStyle) UnityEditor.EditorGUI:TextField(Rect, GUIContent, String) UnityEditor.EditorGUI:PropertyField(Rect, SerializedProperty) UnityEditor.Editor:OptimizedInspectorGUIImplementation(Rect) UnityEditor.GenericInspector:OnOptimizedInspectorGUI(Rect) UnityEditor.InspectorWindow:OnGUI() System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:InternalInvoke(Object, Object[]) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.HostView:Invoke(String) UnityEditor.DockArea:OnGUI()

[....\Editor\Src\OptimizedGUIBlock.cpp line 107]

Could anyone shed any light on this issue for me? Did you have any experiences with this error message before? Any information on possible causes would be appreciated.

Thanks Sebas

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nicolaj Schweitz · Dec 30, 2009 at 06:31 PM 0
Share

This is a good candidate for the forums because it requires some discussion and Q & A before the actual problem can be pinpointed. I would recommend rephrasing this question to be more general. If the question is more general, other users can also benefit from the answer, which is the purpose of the answers forum.

avatar image Sebas · Dec 30, 2009 at 09:29 PM 0
Share

Thanks for your comment and answer, Nico. However, I still believe that error messages, especially if they're not very common or nothing can be found on them so far belong here. I was hoping for answers that would lead me to where I should be looking for my problem. I didn't want to take my project apart. I would actually appreciate if most error messages would appear here on Unity answers. As answers I would expect experiences from other users who could guide the search for my problem in my specific project. So your answer was something I'd be looking for.

avatar image Sebas · Dec 30, 2009 at 09:31 PM 0
Share

If those hints and experiences from other users don't help me, I'd consider taking my project to the forums as the next step. I agree that I should have left out the specifics of my project and simply ask for any information/experiences on the error message. If you still believe the question is inappropriate here, I'd be happy to delete it to not clutter unity answers. Thanks, Sebas

4 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Nicolaj Schweitz · Dec 30, 2009 at 06:26 PM

That is a very large block of error message you got there...

At first glance I would say that you are trying to load too much text into a text field in the GUI or perhaps you should set a buffer size that accommodate your needs or consider emptying the buffer when it reaches a certain size by writing the data to the file in smaller intervals instead of at the end of the scene. It is not that apparent to me because I am not fully aware how you do it.

Consider taking it to the forum and throw some example files/project in the pot.

Nico

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
4

Answer by Alister · Apr 04, 2011 at 08:05 PM

I had a similar error message recently:

Optimized GUI Block Text buffer too large. Not appending further text. UnityEditor.DockArea:OnGUI()

I realised that I had some string arrays (huge) for file handling, visible in the Inspector - once I made them private (i.e. no longer visible via the inspector) the error disappeared!

e.g.

var fileContents : String;

var lines : String[];

changed to:

private var fileContents : String;

private var lines : String[];

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lbalasubbaiahapps · Jan 20, 2012 at 06:28 AM 0
Share

thanks Alister its working nice .my error is resolve.....

avatar image
0

Answer by VeggieVampire · Jul 25, 2016 at 04:14 PM

I found a work around. Break your array into to different arrays. You can even have your second array start where you last one ended.

         if(Assgn >=34){
             InterpretationText.text = array1[Assgn];
             } else {
                InterpretationText.text = array2[Assgn];
                }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by VeggieVampire · Jul 25, 2016 at 04:14 PM

I found a work around by breaking the array in two. You can even start the second where the first array ended.

         if(Assgn >=34){
             InterpretationText.text = array2[Assgn];
             } else {

             InterpretationText.text = array[Assgn];

             }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Loading a scene in game with a GUI 1 Answer

Instantiating object from inventory 0 Answers

Can't draw a box using Basic GUI 1 Answer

Errors when adding a GUI.Label C# 2 Answers

GUI Scale Problem 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges