I would like to use the scroll bar in unity to scroll the screen sideways.
I could scroll vertically, but I can't see the horizontal scroll.
Also, I don't know how to scroll horizontally with a scroll bar instead of a touch, so please let me know
The language is written in C#
For uGUI implementations,
Scrollbar has a property called Direction, so why don't you switch it over?
Right-click the hierarchy and select UI>ScrollView to create objects with vertical and horizontal scrollbars from the beginning.
Why don't you use that as a reference and set it up yourself?
(The Horizontal Scrollbar in the ScrollRect inspector is a reference to the horizontal scrollbar.)
By the way, the scrollbar automatically disappears according to the size below Content, but you can also leave it running by changing the ScrollRect setting.
© 2022 OneMinuteCode. All rights reserved.