1
NGUI 3 Support / OutOfMemoryException: Out of Memory NGUI 3.7.1
« on: August 30, 2014, 12:10:04 PM »
I'm getting the following error from NGUI:
I saw a similar problem mentioned in this previous topic which seems to indicate that it was fixed as of 3.5.1, but I'm using 3.7.1 and am encountering this issue.
I think it may have something to do with the fact that I'm using Space for Unity which uses some pretty large meshes and another camera to things look very big and far away. The reason I suspect this is because my problems didn't start occurring until some time after I imported that into my project, and it only seems to happen in scenes where I have both NGUI and Space for Unity.
NGUI doesn't like something about it and I get lots of errors. It also slows down the editor to a crawl and has crashed it a couple of times. Please help me figure out how to resolve this!
Quote
OutOfMemoryException: Out of memory
BetterList`1[UnityEngine.Vector2].AllocateMore () (at Assets/NGUI/Scripts/Internal/BetterList.cs:178)
BetterList`1[UnityEngine.Vector2].Add (Vector2 item) (at Assets/NGUI/Scripts/Internal/BetterList.cs:220)
UIBasicSprite.TiledFill (.BetterList`1 verts, .BetterList`1 uvs, .BetterList`1 cols) (at Assets/NGUI/Scripts/Internal/UIBasicSprite.cs:529)
UIBasicSprite.Fill (.BetterList`1 verts, .BetterList`1 uvs, .BetterList`1 cols, Rect outer, Rect inner) (at Assets/NGUI/Scripts/Internal/UIBasicSprite.cs:329)
UISprite.OnFill (.BetterList`1 verts, .BetterList`1 uvs, .BetterList`1 cols) (at Assets/NGUI/Scripts/UI/UISprite.cs:422)
UIWidget.UpdateGeometry (Int32 frame) (at Assets/NGUI/Scripts/Internal/UIWidget.cs:1459)
UIPanel.UpdateWidgets () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1522)
UIPanel.UpdateSelf () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1185)
UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1144)
I saw a similar problem mentioned in this previous topic which seems to indicate that it was fixed as of 3.5.1, but I'm using 3.7.1 and am encountering this issue.
I think it may have something to do with the fact that I'm using Space for Unity which uses some pretty large meshes and another camera to things look very big and far away. The reason I suspect this is because my problems didn't start occurring until some time after I imported that into my project, and it only seems to happen in scenes where I have both NGUI and Space for Unity.
NGUI doesn't like something about it and I get lots of errors. It also slows down the editor to a crawl and has crashed it a couple of times. Please help me figure out how to resolve this!