unity scroll

Asked 1 months ago, Updated 1 months ago, 1 views

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#

unity3d

2022-09-30 13:50

2 Answers

For uGUI implementations,
Scrollbar has a property called Direction, so why don't you switch it over?


2022-09-30 13:50

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-09-30 13:50

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.