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. Dismiss Notice

Addressables Buildscript Accessibility

Discussion in 'Addressables' started by JorisEertink, Aug 3, 2021.

  1. JorisEertink

    JorisEertink

    Joined:
    Mar 15, 2017
    Posts:
    24
    Hi @unity_bill @karl_jones @TreyK-47 ,

    I found that you guys cache the current state of assets in a content_state.bin file to detect changes for new builds. Currently this is filtered to specific bundles/content (for example marked as static).

    When we are making new bundles, we would like to get a detailed overview of which bundles have changed compared to last time, and because of which assets.

    I found this would be possible with this content_state.bin if we modify the filter to include all bundles into the binary. But to do this I would have to modify your BuildScriptPackedMode class. I tried creating my own BuildScript and inherit from yours, but a lot of the referenced classes and methods are not accessible, even if I would copy paste the complete logic from BuildScriptPackedMode.

    Would it be possible to make it more accessible? Or is there an easier way to compare all newly build bundles to their previous state?

    Thanks in advance!

    Joris
     
    phobos2077 and Jonas-Neuston like this.
  2. Jonas-Neuston

    Jonas-Neuston

    Joined:
    Jun 10, 2017
    Posts:
    70
    That would be very useful!
     
    phobos2077 and JorisEertink like this.
  3. JorisEertink

    JorisEertink

    Joined:
    Mar 15, 2017
    Posts:
    24
    phobos2077 likes this.
  4. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,795
    Flagging for the team to take a look!
     
    JorisEertink likes this.
  5. JorisEertink

    JorisEertink

    Joined:
    Mar 15, 2017
    Posts:
    24
  6. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
    Hey, just wanted to say that we should have enough exposed in our upcoming 1.19.0 to do just this. Copying and pasting the default build script is actually something I want to make sure is possible in 1.19.0
     
    JorisEertink and phobos2077 like this.