Search Unity

XRDevice.GetNativePtr() returns null on Oculus Go

Discussion in 'AR/VR (XR) Discussion' started by SoxwareInteractive, Jul 31, 2018.

  1. SoxwareInteractive

    SoxwareInteractive

    Joined:
    Jan 31, 2015
    Posts:
    541
    Hi,
    I'm trying to get access to the Oculus Mobile SDK but for some method calls you need the ovrMobile* pointer.
    Is there a specific reason why XRDevice.GetNativePtr() is returning a null pointer instead of a valid pointer of type ovrMobile* (Oculus Mobile SDK)?

    How can I get access to this pointer (a dirty workaround would also be appreciated :D)?

    Thank you very much.
     
  2. Quewa

    Quewa

    Joined:
    Sep 29, 2021
    Posts:
    1
    Hey SoxwareInteractive,

    Did you find any workarounds for this? Would be much appreciated if you would share it :)

    Thank you
     
    Last edited: Sep 29, 2021
  3. SoxwareInteractive

    SoxwareInteractive

    Joined:
    Jan 31, 2015
    Posts:
    541
    Hey @Quewa,
    yes I ended up using "ovrp_GetNativeSDKPointer()".