/// <summary> /// 父物体改变前 /// </summary> protected override void OnBeforeTransformParentChanged() { BrandoUIGraphicRegistry.UnregisterGraphicForCanvas(canvas, this); LayoutRebuilder.MarkLayoutForRebuild(rectTransform); }
protected override void OnDisable() { m_Tracker.Clear(); LayoutRebuilder.MarkLayoutForRebuild(rectTransform); base.OnDisable(); }