Search Unity

Conflict with Unity IAP?

Discussion in 'Addressables' started by hexaust_, Nov 21, 2018.

  1. hexaust_

    hexaust_

    Joined:
    Mar 7, 2015
    Posts:
    23
    I am trying to build addressable assets from script using this code:
    Code (CSharp):
    1. private static void BuildAddressableAssets(BuildPlayerOptions options)
    2.     {
    3.         var settings = AddressableAssetSettingsDefaultObject.Settings;
    4.  
    5.         if (settings == null)
    6.         {
    7.             return;
    8.         }
    9.        
    10.         var context = new AddressablesBuildDataBuilderContext(
    11.             settings,
    12.             options.targetGroup,
    13.             options.target,
    14.             false,
    15.             false,
    16.             settings.PlayerBuildVersion
    17.             );
    18.  
    19.         settings.ActivePlayerDataBuilder.BuildData<AddressableAssetBuildResult>(context);
    20.     }
    and I receive this compiler error:


    Assets/Plugins/UnityPurchasing/generated/AppleTangle.cs(16,20): error CS0103: The name `Obfuscator' does not exist in the current context
    Assets/Plugins/UnityPurchasing/generated/GooglePlayTangle.cs(16,20): error CS0103: The name `Obfuscator' does not exist in the current context
    Assets/Plugins/UnityPurchasing/generated/UnityChannelTangle.cs(16,20): error CS0103: The name `Obfuscator' does not exist in the current context


    I am using:
    Unity 2018.2.16f1
    Addressable Assets 0.48
    In App Purchasing 2.0.3
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Thanks for reporting this. I've opened a ticket for us to fully test the compatibility with IAP.

    -Bill