In my game, I have a scrollrect which its content have a VerticalLayout component. When I fill that with so many count of GameObjects, the game will fall in problem!
My list has more than 300 GameObjects.
How to optimize my scroll list?
In my game, I have a scrollrect which its content have a VerticalLayout component. When I fill that with so many count of GameObjects, the game will fall in problem!
My list has more than 300 GameObjects.
How to optimize my scroll list?
I solved my problem (Performance issue, as Scott Chamberlain said) by do some tips in Optimising Unity new UI System Article.
Disabling pixel perfect is very useful tip that works for me:
- ScrollRect will rebuild / reload everything every frame if pixel perfect is enabled.
- Canvas PixelPerfect has large performance impact. Disable it if possible.
Another useful tip:
- Disable gameobject when off-screen