Hey guys,
I'm trying to do menu panel transitions. Each menu is an UIPanel, and transitions are simple TweenTransform, which are attached to the UIPanel, from a position outside of the screen to a position into the middle of the screen, without scaling or rotating.
The menus include one UIScrollView with many widgets, which are batched into 5 drawcalls, plus 2 more drawcalls from the rest of the screen.
While it takes the screens 0.5 seconds to each leave the screen and to enter the screen, I notice two things:
- Big Frame Rate drops while moving
- The Elements of the included UIScrollView are not rendered at their real position, but ahead, into the direction of the movement.
Everything is at it's position again when the tweening is over.
If I understand it correctly, moving only the UIPanel (and there is no anchoring on Update going on inside of it) should just move the generated draw call, and not recalculate geometry, right? Or am I missing for example that the menu, when it's offscreen, doesn't have a draw call yet, and those have to get generated while it's moving into the visible area? If so, is there a way to preload all draw calls offscreen, mark the Panels as static, and move them then?
Did you hear of the offset of the drawn content of the UIScrollView, or would you like pictures of it? Any idea why this happens?
And do you know if there is a better method to do those transitions, to avoid mainly the frame rate problems?
I'm sorry for so many questions, but this has been bugging me for quite some time now :/
Thank you for your help!