1
NGUI 3 Support / using too much memory app crashes in iOS
« on: January 14, 2014, 07:55:02 AM »
i'm using NGUI creating a game. In my world scene, i create every page of my game using NGUI and group them in using empty gameobject (as in picture, in each group there are many widgets of the page).
by setting 'setactive' in each group in can swap between each page in my game (i.e. from world to shop).
the problem is there are so many widgets in this 'scene' when i build my game to iOS and try running it using iPad mini and iPhone4, the app crashes when loading this scene.
i got this problem before but not with NGUI so it can be solved by delaying the creation of the objects in my code.
btw, i have no idea with the NGUI problem i'm having now because when i use NGUI i created things using drag&drop in Unity Editor not by the code, that's why i dont know how to delay the instantiation of the objects.
is there any ways to solve this ?
Thank you so much for every help.
Spacez
by setting 'setactive' in each group in can swap between each page in my game (i.e. from world to shop).
the problem is there are so many widgets in this 'scene' when i build my game to iOS and try running it using iPad mini and iPhone4, the app crashes when loading this scene.
i got this problem before but not with NGUI so it can be solved by delaying the creation of the objects in my code.
btw, i have no idea with the NGUI problem i'm having now because when i use NGUI i created things using drag&drop in Unity Editor not by the code, that's why i dont know how to delay the instantiation of the objects.
is there any ways to solve this ?
Thank you so much for every help.
Spacez


