/// <summary> /// Invalidate the panel's draw calls, forcing them to be rebuilt on the next update. /// This call also affects all child panels. /// </summary> public void SetDirty() { UIDrawCall.SetDirty(this); for (int i = 0; i < UIWidget.list.size; ++i) { UIWidget w = UIWidget.list[i]; if (w.panel == this) { w.MarkAsChangedLite(); } } for (int i = 0; i < list.size; ++i) { UIPanel p = list[i]; if (p != null && p != this && p.parent == this) { p.SetDirty(); } } }
/// <summary> /// Invalidate the panel's draw calls, forcing them to be rebuilt on the next update. /// This call also affects all children. /// </summary> public void SetDirty() { UIDrawCall.SetDirty(this); Invalidate(true); }