- Home /
Question by
tucna · Oct 08, 2015 at 10:54 AM ·
scripting problemuicanvasscrollviewevents
Changing ScrollView content from the script
Hi,
let's say that I have a ScrollView and I need to change its content based on some game object OnMouseDown() event. Different contents are game objects with Rect transform, Vertical Layout and many children like Text and Image. Well...
...click to the game object obj1 should show content obj1cont in the ScrollView
...click to the game object obj2 should show content obj2cont in the ScrollView
...click to the game object obj3 should show content obj3cont in the ScrollView
...
What is the best way of doing this?
Thank you.
Comment
Your answer
Follow this Question
Related Questions
How to vertical drag button inside horizontal scrollrect 2 Answers
Scrollview Without Canvas 1 Answer
UI Text does not show when instantiated at runtime. 0 Answers
Movement in Scroll View 0 Answers