public void DoUnitOfWork(IObjectPool pool, Transform root) { while (Count > 0) { var item = Dequeue(); Reconciler.Reconcile(item.elementToUpdate, pool, item.elementToUpdate.Clone(), root); } }
private void Update() { if (!built) { var rootElement = Element.Create(rootComponent.Create(), new PropCollection(new Dictionary <string, object>())); Reconciler.CreateElementTree(rootElement); Reconciler.InvokeBuilders(rootElement, this, this.transform); built = true; } Element.ClearElementCache(); SystemHook.Prepopulate(); ScreenSizeHook.Prepopulate(); MousePositionHook.Prepopulate(); PropCollection.FlushCallbacks(); RenderQueue.Instance.DoUnitOfWork(this, this.transform); }