Search Unity

Question Restrict inspector of AssetReference collections

Discussion in 'Addressables' started by TheSniperFan, Jan 10, 2021.

  1. TheSniperFan

    TheSniperFan

    Joined:
    Jul 18, 2013
    Posts:
    712
    Hi,
    we're switching to Addressables and ran into a problem. The "AssetReferenceUILabelRestriction" attribute works nice for simple fields/properties, but doesn't appear to work on collections of asset references.

    Putting it on an "AssetReference[]" or "List<AssetReference>" has no effect and all Addressables are shown in the selection dropdown.

    Is there a way to get that to work or am I missing something?
    Thanks
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    Let me flag with the team for some guidance. Which version of Addressables are you using?
     
  3. TheSniperFan

    TheSniperFan

    Joined:
    Jul 18, 2013
    Posts:
    712
    Sorry for the late reply. We're using Addressables 1.16.15 and Unity 2020.2.1f1.
     
    TreyK-47 likes this.
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    Wanted to pass along that the team has put in a ticket for this feature request on their end.
     
    TheSniperFan likes this.
  5. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    294
    This is now fixed from Addressables 1.18.7+
     
    TreyK-47 and TheSniperFan like this.