Author Topic: UIPanel exception  (Read 1890 times)

shokinhan

  • Guest
UIPanel exception
« 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 ?



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel exception
« Reply #1 on: September 09, 2013, 01:08:21 AM »
Sounds like you've ran out of memory on your device. The location of where it throws an exception is just a coincidence.

shokinhan

  • Guest
Re: UIPanel exception
« Reply #2 on: September 09, 2013, 02:11:30 AM »
Some gameobject links too many UIwidget?



ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: UIPanel exception
« Reply #3 on: September 10, 2013, 04:40:37 AM »
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.