protected override void OnBeforeTransformParentChanged() { GraphicRegistry.UnregisterGraphicForCanvas(this.canvas, this); LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform); }