Search Unity

UnityEngine.XR.XRDevice.GetNativePtr();

Discussion in 'AR/VR (XR) Discussion' started by techmage, Mar 1, 2018.

  1. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    ZenUnity likes this.
  2. AaronXRDev

    AaronXRDev

    Joined:
    Dec 13, 2014
    Posts:
    30
    I second this. I have been trying for a couple days to figure out how to get haptics working for my Samsung Odyssey and have had no luck so far.
     
    ZenUnity likes this.
  3. boynet

    boynet

    Joined:
    May 20, 2017
    Posts:
    17
    I tripled this, pls any info we really need haptic feedback and it seems like getnativeptr is the only way
     
    ZenUnity likes this.
  4. ZenUnity

    ZenUnity

    Joined:
    Apr 21, 2013
    Posts:
    28
    Quadruple this.
     
  5. techmage

    techmage

    Joined:
    Oct 31, 2009
    Posts:
    2,133
    I figured out how to get haptics working on a Windows MR Headset and SteamVR without having the WinMR or steamVR sdk's fully imported. Just took the single class and methods needed. Can view it here:
    https://github.com/Fjordnet/UnityLIB-XRInteraction
     
  6. Matt_D_work

    Matt_D_work

    Unity Technologies

    Joined:
    Nov 30, 2016
    Posts:
    202
    ZenUnity and Gruguir like this.