Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. 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.