Unable to scroll in Scroll rect with input fields Unity

4.4k views Asked by At

I have a problem which makes me crazy. I have created a scroll rect in unity with a lot of Input Field's like in picture below.

enter image description here

My problem is : I can't scroll!!! Every time when I try, the keyboard it's opened. Scroll it's able just if I hit the red space between the Input field's.

I am thinking that the problem is because the keyboard appears on OnPointerDown and not OnPointerUp or OnPointerClick. I tried to add a EventTrigger component to InputField and add actions for OnPointerDown and OnPointerUp but I had no success to change keyboard behavior.

Any help? Any ideas? Please! Thanks a lot!

1

There are 1 answers

1
Artur On

You can create Button and attach InputField as child of it, then:

  1. add button OnClick event InputField.Select()
  2. Disable Raycast Target for InputField, Placeholder and Text

To hide button you can make it transparent.