Author Topic: Google VR sdk Day dream controller support  (Read 365 times)

Farhan Gul

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Google VR sdk Day dream controller support
« on: August 23, 2017, 02:10:29 AM »
How can we customize NGUI to work with Google VR day dream controller? Any help will be really appreciated. Thanks!
https://developers.google.com/vr/unity/controller-support

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,151
  • Toronto, Canada
    • View Profile
Re: Google VR sdk Day dream controller support
« Reply #1 on: August 25, 2017, 12:41:33 AM »
I'm not sure what NGUI, as a UI system, would have to do with VR input? Do you mean have it react to input from the controller itself? If so, you can do anything you want just by assigning a custom input function (UICamera.onCustomInput) or just overriding NGUI's input functions (UICamera.GetTouchXXX, UICamera.GetKeyUp/Down, UICamera.GetMouse,  UICamera.GetAxis, etc).

Farhan Gul

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Google VR sdk Day dream controller support
« Reply #2 on: August 29, 2017, 06:49:00 AM »
I was able to solve the problem. Here is the solution. Thanks.
https://forum.unity3d.com/threads/gvr-daydream-ngui-integration.491212/