protected override void OnRectTransformDimensionsChange() { if (base.gameObject.activeInHierarchy) { if (CanvasUpdateRegistry.IsRebuildingLayout()) { this.SetVerticesDirty(); } else { this.SetVerticesDirty(); this.SetLayoutDirty(); } } }