Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            Props = new PropCollection(GetProps(ref inputDeps));

            return(inputDeps);
        }