Search Unity

Enabling UnityAds for my project adds two useless textures to the game

Discussion in 'Unity Ads & User Acquisition' started by stopiccot_tds, Nov 26, 2018.

  1. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    I've enabled UnityAds for my project and it increased by build size by 16mb because of adding two textures that should be used in editor only.

    Code (csharp):
    1. Used Assets and files from the Resources folder, sorted by uncompressed size:
    2.  8.0 mb     1.0% Packages/com.unity.ads/Editor/Resources/Editor/landscape.jpg
    3.  8.0 mb     1.0% Packages/com.unity.ads/Editor/Resources/Editor/portrait.jpg
    4.  4.0 mb     0.5% Built-in Texture2D: sactx-1024x1024-Uncompressed-Sprites-d37c6e12
    Is it a bug or a intended behaviour? How can I workaround that?
     
  2. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
  3. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    @DenisasK Unity 2018.2.14f1.
    And a part of manifest.json
    Code (csharp):
    1.  
    2. {
    3.   "dependencies": {
    4.     "com.unity.ads": "2.0.8",
    5.     "com.unity.analytics": "2.0.16"
     
  4. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    @stopiccot_onthespot
    Thanks! So far it is hard to tell if it is a bug with Unity Engine or Unity Ads but I will investigate it and will forward to the right team. Also, let you know in the thread.
     
  5. DenisasK

    DenisasK

    Unity Technologies

    Joined:
    Oct 13, 2016
    Posts:
    89
    @stopiccot_onthespot
    Please, update the Unity Ads package from 2.0.8 to 2.3.1. This bug is fixed there.
     
  6. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    Thanks, I'll try it