T
T
Taranas2020-07-09 22:35:40
Unity
Taranas, 2020-07-09 22:35:40

How to programmatically navigate Scroll View (Scroll Rect)?

For example, I have a scroll with 10 elements. The first 3 out of 10 are shown on the screen. How to programmatically scroll the scroll so that the 7th element becomes visible. Those. so that it takes the position of the 3rd object (right corner on the panel of visible objects)? Tried by changing ScrollbarHorizontal.value , but it looks clumsy.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question