Example #1
0
        void Start()
        {
            UIModuleModelTimer.AtEndOfFrame(() =>
            {
                m_started = true;
                OnEnable();
            }, this);

            UIModuleModelTimer.DelayedCall(0.01f, () =>
            {
                Cleanup();
                UpdateDisplay();
            }, this);
        }
Example #2
0
 void OnRectTransformDimensionsChange()
 {
     if (Application.isPlaying)
     {
         m_hardUpdateQueued = true;
     }
     else
     {
         UIModuleModelTimer.AtEndOfFrame(() => { if (m_enabled)
                                                 {
                                                     HardUpdateDisplay();
                                                 }
                                         }, this);
     }
 }