Page 1 of 1

Scroll sensitivity using Screen Space - Camera on Android

PostPosted: Thu Mar 08, 2018 4:54 am
by Berno

I have successfully been using TouchScript in my Unity project for a number of years on Android.
Recently I have expanded to the PC platform and when adding support for VR I had to change the UI to use Screen Space - Camera so that it would render the UI in VR correctly.

Unfortunately a side effect of this is that when I switch back to Android although everything works fine in the Editor on the actual device Scroll Rects are extremely sensitive with the smallest motion scrolling to the top and bottom of the lists. Switching every canvas back to Screen Space - Overlay fixes the behaviour however this is a very time consuming manual job as I have a large number of prefabs with Canvas objects on them that are instantiated at runtime.

I have narrowed it down to TouchScript as with a standard input event system changing the canvas render mode does not cause this sensitivity issue.

Any ideas?
Is there something missing in projection code of TouchScript to deal with the different DPI in this situation?
I can only think of workarounds perhaps an editor script to automate the job of switching render modes on all the prefabs? Or a way of using standard Unity input for the menus and just using TouchScript when I need it in the editor, however this seems difficult as TouchScript likes to add its own version of the input module and trouble is caused when the two systems fight over control!
However I would much prefer an actual solution to the issue.

Appreciate any help.

Re: Scroll sensitivity using Screen Space - Camera on Androi

PostPosted: Mon Mar 12, 2018 12:20 pm
by ireth86
Hi, I'm having the same issue with the canvas in Camera space on a simple touchscreen screen.
It works properly if I test it on my pc with mouse, but the scroll sensitivity gets too high when I test it on a "real" touchscreen.
--- UPDATE ---
I found this which is related to our problem.
I'm going to try to download the updated version from Git and see what happens.
--- UPDATE 2 --- ... 116f791d08
I downloaded this version, and it seems to have fixed it!

Re: Scroll sensitivity using Screen Space - Camera on Androi

PostPosted: Tue Mar 20, 2018 8:56 am
by Berno
I got a chance to try building my project with the develop branch of TouchScript and it fixed the problem.
Nice find, thanks so much for sharing!