/// <summary> /// Override to Cull function of MaskableGraphic to prevent Culling. /// </summary> /// <param name="clipRect"></param> /// <param name="validRect"></param> public override void Cull(Rect clipRect, bool validRect) { // Get compound rect for the text object and sub text objects in local canvas space. Rect rect = m_TextComponent.GetCanvasSpaceClippingRect(); var cull = !validRect || !clipRect.Overlaps(rect, true); if (canvasRenderer.cull != cull) { canvasRenderer.cull = cull; onCullStateChanged.Invoke(cull); OnCullingChanged(); } }