- Home /
How change background in canvas(scroll background) by next and previous button?
Hello How to scroll the second hall (second image) after clicking on the next button to move to the location of the first image and each of the images move to next. I'm sorry for bad english.
Answer by logicandchaos · Sep 14, 2020 at 02:02 PM
I find the easiest way is to put them all in an empty gameObject and then put a horizontal or vertical layout on it and then you can either change the child order or move the gameObject. I do it in my free comic asset, check it out: https://assetstore.unity.com/packages/tools/gui/interactive-comic-maker-156749
thank you for reply. if i use horizontal layout and move the gamObject parent So how do I know which one is on the canvas? how do I put one of the childs in the canvas position?
Your answer
Follow this Question
Related Questions
Velocity of scrollRect always returns (0.0,0.0) 1 Answer
Buttons in UI Scroll Rect 2 Answers
Why are the elements of my scrollview scaled different after refreshing? 0 Answers
Masking GameObject in Canvas 1 Answer
RealTime image put on a Canvas 2 Answers