Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: krubba1 on November 13, 2012, 01:26:59 PM
-
Not sure if this is a bug or intentional, but when i have clipping on (soft clip), the scroll panel behaves as expected, i.e. when i drag items passed the edge of screen, they bounce back in. When I turn clipping off, there is no bounce back, and you can effectively drag content completely out of view... And i can keep scrolling it further and further into outer space...
am i missing something?
-
No clipping = no boundaries, so no, you are not missing anything.
-
Doesn't it seem odd to link scrolling behaviour (not having scroll items fly into space) to clipping behaviour (just a visual effect)?
Can you offer any quick suggestion on how to allow bounds but without the clipping?
-
I managed to get bounds respected without clipping, but dislike changing ngui code and risk losing the change on an update. Might I suggest a third clipping mode: "None but with bounds"?
-
It seems a bit strange to me to have it done like that, but I'll think about it.
-
i agree it feels wrong to piggy back on the clipping functionality, but i'm in a bind and needed to get this working quickly.
But any way to be able to specify bounds so that 'Restrict Within Panel' has an effect with clipping turned off would be nice. Thanks!
-
Why not just clip to full screen?
-
Because for some reason on clipping was killing our performance on iOS...
Not sure if that's a known issue, or if we are doing something wrong. But with clipping on we would see 50-100 ms of CPU going to Graphics.PresentAndSync -> Device.Present
Maybe there's something obvious I'm doing wrong to cause such a massive performance hit? Only strangeness is that the scroll list has UITexture items, but otherwise everything is shared on one atlas...
-
Hard clipping = very bad for mobiles. Alpha-based clipping should be better.