Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Modifying non default AddressableAssetSettings through the inspector

Discussion in 'Addressables' started by Kamand0l, Mar 16, 2020.

  1. Kamand0l

    Kamand0l

    Joined:
    May 19, 2014
    Posts:
    10
    Hello,

    We maintain two separate AddressableAssetSettings files, one for developers to mess with and iterate faster and another one just for builds and releases in our automated build pipeline.
    Apparently, every aspect of the Addressables UI uses the default AddressableAssetSettings file, which I guess it's fine(through the API we can still make use of the build related one).
    The thing that bugs me is that when editing through the inspector de non default AddressableAssetSettings, being a serializable asset you can easily customize it's properties but when trying to modify it's profiles(with the Manage profiles button) it actually modifies the default settings profiles:

    Code (CSharp):
    1. #AddressableAssetsSettingsInspector.cs:136-139
    2.  
    3. if (GUILayout.Button("Manage Profiles", "Minibutton"))
    4. {
    5.     EditorWindow.GetWindow<ProfileWindow>().Show(true);
    6. }
    Code (CSharp):
    1. #ProfileWindow.cs:46-49
    2.  
    3. internal AddressableAssetSettings settings
    4. {
    5.     get { return AddressableAssetSettingsDefaultObject.Settings; }
    6. }
    Could it be possible to set the currently edited settings reference before opening the Profiles window ?

    Thanks !
     
  2. Kamand0l

    Kamand0l

    Joined:
    May 19, 2014
    Posts:
    10
    Just wondering if it's an intended behavior so we can move with editing the non-default addressables settings serialized file directly, without the Inspector.
     
unityunity