How do I scroll down "Scroll Rect" with code?

Hello,

How can I scroll “Scroll Rect” to the position I have softly specified? Can you send me sample code for this?

Thank you

You modify these properties:

They are normalized so you need to do some scaling to get the correct normalized fractional value based on the actual distance in the local scroll space that you want. You can also look at the UI source code for ScrollRect in the Unity UI package, or get the source off of github.

1 Like