googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.09k forks source link

Scroll Rect problem on version 0.85 Unity 5.3.4f1 #278

Closed Enumio closed 8 years ago

Enumio commented 8 years ago

Hello, I encountered a problem in Cardboard SDK.

I have a table of buttons 2x2 with scroll rect, and i cant click on any of them. In the editor everything works but not on my s6. When i turn off the scroll rect all buttons are clickable and work on the phone, but then i can't scroll through my table and list other buttons. What can i do?

Here are some Screens: table example table example inspector

This problem occurs on 0.85. I tried 0.6 and everything is fine there.

Help please.

smdol commented 8 years ago

For reference, which version of Unity are you using? Was it the same version for 0.6 as well? There have been a number of uGUI-related issues in recent Unity point releases.

Enumio commented 8 years ago

Same version of unity, 5.3.4f1.

That issue i remember began in 0.7 and it is there still.

Weird thing is i can point my gaze towards one of the buttons in the table and hold the physical button pressed on my cardboard headset and can drag the whole content up and down with my head. Like when you grab a slider with a mouse.

Gonna try with different version of Unity tomorrow and report back.

smdol commented 8 years ago

The dragging is done here: https://github.com/googlevr/gvr-unity-sdk/blob/master/GoogleVR/Scripts/GazeInputModule.cs#L191

Enumio commented 8 years ago

Ok i tried Unity 5.3.5f1 and i can't see UI at all. I created fresh project and loaded first version 0.6 tested it, and then 0.85 and tried the DemoScene. With distortion correction enabled UI does not render.

Switching back to Unity 5.3.4f1, I'm going to try and workaround from there.

smdol commented 8 years ago

The UI issue was a bug in Unity itself, that came in at 5.3.4p2 and was fixed as of 5.3.6f1. The bug was that Canvas objects in world space mode failed to render into cameras with a target texture.

Enumio commented 8 years ago

Okay, thanks for that. That is really useful. :)

Zvirtuosity commented 8 years ago

Enumio , are you fixed it?I already have the same problem in unity 5.3.1f1

Enumio commented 8 years ago

No, i have been away from that project for a while. I've been doing some AR work but I'll come back to that.

In all my internet searches i haven't found if somebody has similar problem.