- Home /
Question by
kaka24fan · Aug 07, 2015 at 01:42 PM ·
scripting problemuiscriptingbasicsscrollviewscrolling
Moving a ScrollRect child via script to focus on some point.
Hello. Suppose I have a large map Image which is a child of a scrollRect, so I can drag it around with my mouse, because the map is too huge to fit the screen.
My question is: suppose I wanna focus on some point of the map. I mean I want to make this point appear in the center of my scrollrect parent. How do I do this via script. Any suggestions?
Thanks, have a nice day!
Comment
Your answer
Follow this Question
Related Questions
How can I programmatically tween a Scroll View to a desired position? 0 Answers
Scroll View: Is there a way to discriminate and accept only certain PointerEvents? 0 Answers
How do I Make TextMeshPro InputField scroll through code? 0 Answers
Changing ScrollView content from the script 0 Answers
Scaling scroll view width to its content width or vice versa 0 Answers