1. 程式人生 > >Fill-rate,Canvases and input 填充率,畫布和輸入—(Unity3d)

Fill-rate,Canvases and input 填充率,畫布和輸入—(Unity3d)

Because a Canvas rebatches any time any ofits constituent drawable components changes, it is generally best to split anynon-trivial Canvas into at least two parts. Further, it is best to try toco-locate elements on the same Canvas if the elements are expected to changesimultaneously. An example might be a progress bar and a countdown timer. Theseboth rely on the same underlying data and therefore will require updates at thesame time, and so they should be placed on the same Canvas.