Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug (Case 1341687) AddressableAssetSettings not persistent ("Strip Unity Version from AssetBundles")

Discussion in 'Addressables' started by Peter77, Jun 8, 2021.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,624
    The options
    Strip Unity Version from AssetBundles
    and
    Disable Visible Sub Asset Representations
    were added to Addressables 1.18.9. Changing these options is not persistent. The changes are lost when restarting Unity.

    Reproduce
    • Open attached project
    • Select
      Assets/AddressableAssetsData/AddressableAssetSettings.asset
    • Change "Strip Unity Version from AssetBundles" in Inspector
    • Change "Disable Visible Sub Asset Representations" in Inspector
    • Restart Unity

    Actual
    The "Strip Unity Version from AssetBundles" change is lost.
    The "Disable Visible Sub Asset Representations" change is lost.

    Expected
    Changes to AddressableAssetSettings are persistent.
     
    Last edited: Jun 9, 2021
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,624
  3. c0nd3v

    c0nd3v

    Joined:
    May 8, 2019
    Posts:
    30
    Easy to fix, just add [SerializeField] on m_DisableVisibleSubAssetRepresentations and m_StripUnityVersionFromBundleBuild in AddressableAssetSettings.cs