I am working on a Daydream App which has several
paged-snapped and simple scrollable scroll rects in world space canvas.
GVRController works pretty well with button clicks but when it comes to scrollRect, I expect it to work as following:
- point at scrollRect UI object
- click and hold.
- drag down (or any other direction based on scollRect’s scroll direction)
- release click
- This should scroll the content just like any mouse-based / touch-based input model.
BUT
It simply doesn’t work.
For snapped-Scrolls I already have previous-next buttons so I have simulated scrolling by detecting swipe on GVRController. I have a OnSwipe event in my script which is fired based on swipe direction, I handle this event in scroll-controller script and invoke clicks on Next/previous buttons accordingly.
Now here are few questions:
Can I make GVRController swipe to work with Scroll-Rect. I thought of manipulating horizontalNormalizedPosition but not sure if this will work intuitively?
Does GVRController fire OnScroll, OnPointerDown, OnPointerUp etc events so I can implement Unity Event interfaces to achieve the functionality?
Any kind of help would be highly appreciated.