- Home /
Question by
Hotshot10101 · Oct 26, 2021 at 11:39 PM ·
scrollview
How do I use ScrollView.ScrollTo?
Unity UI has a component called ScrollView. I am using it with some items. When I select an item in code or when the user taps on one I want to scroll that item into view.
The ScrollView has a method called ScrollTo. It takes a VisualElement. I can't figure out how to get this child VisualElement from the items in the ScrollView.
Can someone tell me how to do that?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613044644im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
scroll view in iphone 1 Answer
Disabling mouse wheel when ScrollView is scrolled 1 Answer
buttons to control ScrollView 1 Answer
NGUI UIPanel and UIscrollviews 1 Answer
Simple Vertical List of UI Elements 1 Answer