示例#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);
        }
示例#2
0
 private void Start()
 {
     ComponentPool.Initialize(index);
     ScreenSizeHook.Prepopulate();
     MousePositionHook.Prepopulate();
 }