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

How to "Update Previous Build" in Batch Mode

Discussion in 'Addressables' started by Jribs, Mar 7, 2020.

  1. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    The question is in the title.

    Any build scripts that I have googled for no longer exist.
    What is the current way to build Addressables through a c# method that can be used with batch mode?

    I currently only build by doing "Update Previous Build" and selecting the previous bin file. That is what I need to mimic.

    Any tips or help would be appreciated.
     
    IvanIvanovP3 likes this.
  2. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    Anyone have a direction they could point me?
     
  3. araki_yuta

    araki_yuta

    Joined:
    Jan 21, 2020
    Posts:
    14
    So GUI command to do that is "Update a Previous Build" right?

    You should search for that in Addressables package.

    Addressables/Editor/GUI/AddressableAssetsSettingsGroupEditor.cs
    should contain that.
    look at what
    OnUpdateBuild
    function is doing, that's probably whats you are looking for
     
    Noblauch and kou-yeung like this.
  4. supersolid-jelte

    supersolid-jelte

    Joined:
    Dec 3, 2018
    Posts:
    22
    IanOnWork and kou-yeung like this.
  5. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154