Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: gk on December 16, 2014, 12:24:30 AM
-
Is there any way i can maintain the same scroll speed no matter how many elements added to the grid of scrollview, the frame rate becomes 3 when i scroll a grid with 1000 elements whereas using 4.6's frame rate retains 30 rate.So any help on making scrollview fast.
-
Do you have culling enabled on the scroll view?
1000 elements is generally a lot. You need to consider limiting this, perhaps by adding categories or pages.
-
Hey,
Yes I have enabled the "cull" on panel ,but still it does not improve the movement.Ok I will take the suggestion of using the pages and try. Anyways if there is any way still i can improve the efficiency it would be very helpful
Thank you
-
I combined both NGUI and uGUI to achieve both softness clipping along with fast scrolling no matter any number of elements added
-
I combined both NGUI and uGUI to achieve both softness clipping along with fast scrolling no matter any number of elements added
Can you please share how did you do that? I'm struggling with the same issue ;)
-
Yes sure why not,knowledge should always be shared :D,here is the procedure
1.Create a NGUI panel (named ScrollingPanel) if you require the soft clipping of contents
2.Now add unity's Canvas as child to ScrollingPanel.
3.Create a unity's Panel,attach "ScrollRect" component to it.Add this as a child to Canvas
4.Create a GridLayoutGroup for containing the contents of scrolling and attach ContentSizeFilter Script to it.(in my case all grid contents were ngui buttons with uisprite)
5.Event system would be required to take Unity events so let it be child of canvas.