Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: shokinhan on September 08, 2013, 05:17:42 AM
-
When game run a long time , the panel would make excetions as
"
System.Array.CopyTo (System.Array array, Int32 index)
BetterList`1[UnityEngine.Color32].AllocateMore ()
BetterList`1[UnityEngine.Color32].Add (Color32 item)
UIGeometry.WriteToBuffers (.BetterList`1 v, .BetterList`1 u, .BetterList`1 c, .BetterList`1 n, .BetterList`1 t)
UIWidget.WriteToBuffers (.BetterList`1 v, .BetterList`1 u, .BetterList`1 c, .BetterList`1 n, .BetterList`1 t)
UIPanel.Fill (UnityEngine.Material mat)
UIPanel.LateUpdate () TIME = 8556080
"
Wheather the go has too many uiwidgets ?
-
Sounds like you've ran out of memory on your device. The location of where it throws an exception is just a coincidence.
-
Some gameobject links too many UIwidget?
-
There is indeed a limit to how many you can have. In anything.
But by your own admission, after your game runs for a long time, the error comes up. Check your creation code as you probably have a memory leak somewhere.