Canvas prevents child scroll view

Hey, I have an UI image that acts as a panel and holds a scroll view component

The hierarchy looks like this:

Image

— Scroll View

------ View Pot

--------- Content

Everything works and the scrolling is fine.

Now I want to make the Image a child Canvas and control its interactivity and visibility with a CanvasGroup (as per Unity best practice).

As soon as I add a Canvas component to the Image parent object and test it, scrolling ceases - it no longer works.

What is going on?

Hi! I hope you solved this problem for yourself.

For anyone who encounters it as well, you just need to add a Graphic Raycaster component to your child canvas.

So for any gameObject that you want to be a child canvas in your UI hierarchy you need to add both Canvas component and Graphic Raycaster component.