Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Managing addressables from custom Editor.

Discussion in 'Addressables' started by pshtif, Apr 20, 2020.

  1. pshtif

    pshtif

    Joined:
    Mar 6, 2017
    Posts:
    12
    Hi guys,

    after reading these forums for last hour I did find out that it is not possible to use addressables from within editor scripts atm. But what I didn't find is if it is possible to manage them in editor scripts.

    Is it possible to add/remove assets to addressables without using addressables editor directly from custom scripts and inspector or editor window? Also manage their key/id etc.

    Thanks.
     
  2. phobos2077

    phobos2077

    Joined:
    Feb 10, 2018
    Posts:
    350
    It's possible and easy. AddressableAssetSettingsDefaultObject.Settings will give you the root addressable settings SO. From there you can get any group, schema etc. and modify as you see fit.