Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Bug with IAP Catalog, if you modify a script with this window open it crashes.

Discussion in 'Unity IAP' started by JustAnotherDude, Jan 8, 2020.

  1. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    211
    As title says, this error is thrown hundreds of times and the window stops working, have to restart unity to bring it back.

    Code (CSharp):
    1. UnityException: get_unityVersion is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'ProductCatalogEditor'.
    2. See "Script Serialization" page in the Unity Manual for further details.
    3. UnityEditor.Purchasing.UdpSynchronizationApi.CheckUdpAvailability () (at <9c5a6c83d4ce4fea836412d752fa7e99>:0)
    4. UnityEditor.Purchasing.ProductCatalogEditor..cctor () (at <9c5a6c83d4ce4fea836412d752fa7e99>:0)
    5. Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.Purchasing.ProductCatalogEditor' threw an exception.
    6.  
    Using package 2.0.6 and Unity 2019.2.17f1.
    Should I file a bug report?
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    It is an issue that we are aware of and working on. You'll want to close the catalog window after you've entered your products, there is no need to have it open after that.
     
  3. Starbox

    Starbox

    Joined:
    Sep 17, 2014
    Posts:
    88
    2.0.6, Unity 2019.2.15f1
    Same error spam, happened right after a popup signaling a new version of the Unity IAP in the Asset Store.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    7,372
    Yes, just close the catalog window after you've entered your products.
     
unityunity