Search Unity

MissingMethodException: Method not found: 'UnityEngine.VR.VRSettings.get_enabled'

Discussion in 'Unity IAP' started by lucapresidente, May 16, 2019.

  1. lucapresidente

    lucapresidente

    Joined:
    Dec 13, 2018
    Posts:
    2
    Hi, I'm having this issue in using Unity IAP on Android as in this thread: https://forum.unity.com/threads/cannot-get-iap-to-work-on-android-devices.542145/

    Both the solutions (reinstall IAP or copy IAP folders from a new project didn't work for me). Would someone mind to add a try/catch block in the Purchase class or suggest me a specific workaround? Please, I don't want to use third-party plugins but actually I can't find any solution that works, thank you.

    05-15 17:42:09.085 3171 3199 E Unity : MissingMethodException: Method not found: 'UnityEngine.VR.VRSettings.get_enabled'.
    05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.JSONStore.Purchase (UnityEngine.Purchasing.ProductDefinition product, System.String developerPayload) [0x00000] in <filename unknown>:0
    05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product, System.String developerPayload) [0x00000] in <filename unknown>:0
    05-15 17:42:09.085 3171 3199 E Unity : at UnityEngine.Purchasing.PurchasingManager.InitiatePurchase (UnityEngine.Purchasing.Product product) [0x00000] in <filename unknown>:0
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    This is discussed several places, please search for VRSettings.get_enabled. Specifically, you need to install Unity 2019 to location without a space in it, like C:\Unity. We are working to resolve the issue.
     
  3. lucapresidente

    lucapresidente

    Joined:
    Dec 13, 2018
    Posts:
    2
    It works, thank you
     
  4. BuiThanhTu

    BuiThanhTu

    Joined:
    Aug 18, 2017
    Posts:
    1
    It's working. Thanks bro