Search Unity

Exception: Error: called non-existent method System.Boolean UnityEngine.VR.VRSettings::get_enabled(

Discussion in 'Unity IAP' started by Antony-Blackett, Feb 22, 2018.

Thread Status:
Not open for further replies.
  1. TortoRacoon

    TortoRacoon

    Joined:
    Apr 17, 2019
    Posts:
    61
    This worked for me too. I suggest other people landing with this same problem to try this out. Problem is,the IAP Class was trying to call a method from the VR package, If you don't have it imported, of course you're going to get this error.

    In my case, it only happened in the device, so I recommend the second method this guy bellow propose to view realtime logs in your android device

     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    No, it only does happen on the device, so it's not just in your case. That is the problem. You need to confirm the update the Unity API when prompted as mentioned in this thread, there is no need for the video.
     
  3. gothicserpent

    gothicserpent

    Joined:
    Mar 12, 2019
    Posts:
    5
    I am very happy to have resolved my issue with this feedback. I followed the steps above.

    (prior error: 01-19 20:17:46.564 19495 19547 E Unity : Exception: Error: called non-existent method System.Boolean UnityEngine.VR.VRSettings::get_enabled()
    01-19 20:17:46.564 19495 19547 E Unity : at UnityEngine.VR.VRSettings.get_enabled () [0x00000] in <00000000000000000000000000000000>:0)

    When I first installed Unity IAP the mistake I made was clicking "No Thanks" for the api update, instead of "I made a backup, go ahead". That is such an important step. I recommend this button text be "Okay" instead of I made a backup so users aren't deterred by trepidation for actually clicking it. Just an idea.
     
  4. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    202
    I can't believe this still happens, 2020-04-30 with Unity 2019.1. Not just seems don't work, the internal importing process looks also broken either. I deleted all IAP related folders in the Plugin folder to re-import, but Unity said it's update-to-date and nothing to IMPORT. IAP package from Asset Store is just not working, so I had to roll-back all of the changes to fix this problem(I'm using Git for my project). I'm currently try to make a new project with 2018 and hope API updater popup shows up which 2019 doesn't.
     
  5. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    202
    Yeah, create a new empty project with 2018.3 and create a "plugins" folder and copied "UDP" and "UnityPurchasing" folder inside, now it shows API Updater. After the update, copy "UDP" and "UnityPurchasing" folder from 2018 and paste(overwrite) into 2019's plugins folder and now it works. Why you guys still not fixing it? I had a similar issue with my project did last year and had a similar problem.
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please open a separate issue, this topic is related to the VR error
     
    Last edited: Apr 30, 2020
Thread Status:
Not open for further replies.