K
K
kos_dev2016-12-24 06:55:51
C++ / C#
kos_dev, 2016-12-24 06:55:51

Scrolling a UI Scroll View when one of its child components is clicked?

Hello.
The crux of the matter is this, I'm working on a 2D game using UI components. I have a Scroll View component, there are images in it, the problem is that in order to scroll this scroll, the player needs to click in the scroll area or in the area where there are no objects (Images). On the images weighs Event Trigger - Pointer Click.
The question itself is: how to make this scroll scroll if the player starts the drag by clicking on the object with Event Trigger - Pointer Click?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2016-12-26
@kos_dev

Why are you using an EventTrigger instead of a Button? The documentation says that EventTrigger absorbs all events in general, so scrolling does not work for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question