November 2019
Intermediate to advanced
404 pages
12h 9m
English
It's possible to create scrolling UI behavior by simply placing other UI elements with a lower depth value than the ScrollRect elements. However, this is bad practice since there will be no culling taking place in ScrollRect, and every element will need to be regenerated for each frame that ScrollRect is moving. If we haven't already, we should use a RectMask2D Component to clip and cull child objects that are not visible. This Component creates a region of space, whereby any child UI elements within it will be culled away if they are outside the bounds of the RectMask2D Component. The cost of determining whether to cull an object compared to the savings of rendering too many invisible ones is typically worth ...
Read now
Unlock full access