How do you disable Scrolling?

Hi Guys,

I have created an empty gameobject and then added the scroollrect and mask, and then the content.

Now I want to disable the scroll of the content? I did not find any option for that in the inspector. I would help if I could do it via script, as sometimes it would be disabled and other times not.

Thanks,

FirebladeBR

GetComponent<ScrollRect>().enabled = false;

THanks, I think I also found that there is also a horizontal and vertical option for enabling scrolling.