在我的Unity项目中,我收到的错误如“优化的GUI Block文本缓冲区太大。不附加更多文本。 UnityEngine.GUIUtility:ProcessEvent(Int32,IntPtr)“ 我尝试将不必要的公共对象和字符串转换为私有,但我仍然得到相同的错误。 我仍然有超过100个公共按钮(我应该有),以及一个大小为205 * 9的字符串数组和另一个大小为49 * 13的字符串数组。反正我有没有摆脱这个错误?也许将数组拆分为较小的数组?这个错误是否会以某种方式导致游戏中出现任何故障?
private string[,] countriesEN=new string[201,9]{
{"ENGLAND","6","1", "Which one is the capital city of England?","Londra", "İstanbul","İzmir","Elazığ","Londra" },
{"ENGLAND","6","2", "Which currency does England use?","Pound", "Euro","Dolar","Dinar","Pound" },
{"ENGLAND","6","3", "Which of the following rivers exist in England?","Thames", "Tuna","Fırat","Nil","Thames" },
{"ENGLAND","6","4","Who is the first woman Prime Minister of United Kingdom?","Margaret Thatcher","Tansu Ciller","Golda Meir","Agatha Christie","Margaret Thatcher"}
.
.
.
.
};
我离开这里是我的大二维字符串数组的一部分。由于它太长,我只显示了4个一维数组。