Author Topic: Custom Raycast - Vive controller setup  (Read 1611 times)

molson

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Custom Raycast - Vive controller setup
« on: June 07, 2016, 11:44:58 AM »
Has anyone tried any custom raycasts to control Ngui UI elements with motion controllers like the Vive? Any help would be appreciated.

My motion controllers have their own raycaster and I've enabled "Queries Hit Triggers". My physics layers are setup so they interact - but my raycasts still do not interact with the UI.

I've read on the forums about using UICamera.onCustomInput but I'm a bit confused on how to use it (not a programmer :( ).

Any help would be appreciated! Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Custom Raycast - Vive controller setup
« Reply #1 on: June 09, 2016, 02:26:20 PM »
I can't suggest anything specific to Vive, but in the coming NGUI update that's in the Pro repository right now you can overwrite all input functionality -- UICamera.GetTouch, UICamera.GetMouse, etc. You can basically use it to replace all of the Input.GetXXX checks with your custom code.