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

build adressables from editor?

Discussion in 'Addressables' started by Tiny-Tree, Sep 28, 2019.

  1. Tiny-Tree

    Tiny-Tree

    Joined:
    Dec 26, 2012
    Posts:
    1,314
    Hello,

    i want to make the following sequence by code to avoid errors:

    1. check if a group exist
    2. create a group
    3. add object to group
    4. change the adressable name
    what should i use in editor to do the following?
     
  2. saarg

    saarg

    Joined:
    Mar 9, 2017
    Posts:
    31
    Using AddressableAssetSettingsDefaultObject.Settings you have access to methods like
    FindGroup, CreateGroup or CreateOrMoveEntry. That should be all you need.