Hello brothers,
I have some problem with scrollview. Current now I can make a list buttons draggable like this.
Scrollview
Content ( Image )
– Button 1
– Button 2
– Button 3
– Button 4
But these buttons can not click. I want to make a list buttons like list cards of Puzzle and Dragons. How can i make this ? Please help me.
system
November 27, 2014, 3:07am
3
I’m kinda stuck in a similar problem, my buttons are clickables but the image is not draggable. I set up an scrollbar and I can drag the content with it, but not with mouse drag directly over the content
Sbizz
November 27, 2014, 9:33am
4
@Wao-Soft : can you tell us all components attached to each elements ? (Layouts, Mask and Image)
@Sibzz it’s something like this.
Scrollview (scrollRect, Mask, Image, Canvas Render ).
Content ( Image, Canvas, Grid Layout Group, Graphic Raycaster )
– Button 1 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 2 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 3 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 4 ( Image, Canvas Render)
— Label (Text, Canvas Render)
well someone here success make list card like one in game PAD or card game kind. Please help us. With NGUI we can add UIdrag Scroll View but UI Unity i don’t know how.
@Sibzz it’s something like this.
Scrollview (scrollRect, Mask, Image, Canvas Render ).
Content ( Image, Canvas, Grid Layout Group, Graphic Raycaster )
– Button 1 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 2 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 3 ( Image, Canvas Render)
— Label (Text, Canvas Render)
– Button 4 ( Image, Canvas Render)
— Label (Text, Canvas Render)
well someone here success make list card like one in game PAD or card game kind. Please help us. With NGUI we can add UIdrag Scroll View but UI Unity i don’t know how.
Hi, i have same problem with it, did you found it ?
Hello brothers,
I have some problem with scrollview. Current now I can make a list buttons draggable like this.
Scrollview
Content ( Image )
– Button 1
– Button 2
– Button 3
– Button 4
But these buttons can not click. I want to make a list buttons like list cards of Puzzle and Dragons. How can i make this ? Please help me.
Hey,did you download the uGui source code in your project? Just delete it from your project, and then ,scrollview worked!!! I have not idea about how it work.
Sbizz
November 30, 2014, 12:21pm
8
I can help you but you have to wait on Thursday (I have the code at the office).
There are several ways to do a scrollview. If I remember well, the first thing if you want to have the possibility to scroll using the mouse (not the wheel), you have to set the Image and the Mask to the Scrollview’s parent.
But let me check that this week
Arowx
November 30, 2014, 12:38pm
9
Do you have the button script on the buttons?
@Arowx well even i add Button script or event script. Both of them not work. Content can be drag but buttons can not click or active event.
Sorry for my bad English.
Arowx
November 30, 2014, 4:34pm
11
Sbizz
December 2, 2014, 9:31am
12
Okay, so, here is my hierarchy:
Menu : VLayout, Mask and Image
– ScrollView : Layout (Flexible H: 1)
— Content : HLayout and Content Size Fitter
---- Item : Layout (Min W) and Image (Alpha: 0)
And it works well.
Maybe Button attached Collider?
yuliyF
February 16, 2017, 2:49pm
14
I catched a bug on Samsung 6 Edge +… how does it fix? (unity 5.5.1p3)