Search Unity

Build For Content Update

Discussion in 'Addressables' started by whowh, Mar 12, 2019.

  1. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Hi

    When I use Build For Content Update.
    After that my StreamingAssets folder will be clean up.
    All the json file are deleted.
    Does someone have the same issue?

    Thanks.
     
  2. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Hi

    I found ContentUpdateScript.BuildContentUpdate have a Cleanup function.
    The addressable build path will be delete in the function.
    But it seems does not generate new file in build path.
    Is it normal or bug?

    Thanks.
     
  3. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    are there errors in your build? If the update build deletes any json files (catalog or settings) they should be re-created.

    Of note, are they in StreamingAssets/aa or StreamingAssets/com.unity.addressables? We changed that path in the latest update (see changelog for info on how to best update that).
     
  4. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Hi

    I do not get any errors.

    After update build my StreamingAssets folder is empty.

    It does not contains any folder.

    In ContentUpdateScript.BuildContentUpdate the json file seems will be create by
    But after this line,the cleanup will be called.

    Maybe Cleanup need to be called early than create json file.

    Thanks.
     
    Last edited: Mar 13, 2019
  5. gyx920820

    gyx920820

    Joined:
    Oct 8, 2015
    Posts:
    35
    Same issue. Every time i build for content update, the streamingasset/aa folder will be deleted
     
  6. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    That does seem very broken. and yet that code hasn't changed in a while. I'm not sure how it was working before. We'll get to fixing this one, and hopefully get it dealt with in a patch release soon (soon meaning maybe next week, probably not this week at this point).

    -Bill
     
    MNNoxMortem likes this.
  7. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Thank you!!
     
  8. wangyucheng1992

    wangyucheng1992

    Joined:
    Feb 19, 2019
    Posts:
    59
    Hi,I do not kown how to post new thread, it will show me the error ,I do not know how to set Tags,is it have some speial tags? who can help me, It's better to show me your printscreen,thank you !
    upload_2019-3-27_18-19-54.png
     
  9. whowh

    whowh

    Joined:
    Mar 7, 2019
    Posts:
    23
    Maybe you can try cancel the tag upload_2019-3-29_12-25-40.png and post again.
     
  10. wangyucheng1992

    wangyucheng1992

    Joined:
    Feb 19, 2019
    Posts:
    59
    Hi Bill
    can you help me? I don't quite understand some of the parameters about AddressableProfiler, Or You can provide me with a link to the documentation .
    Thank you!
    upload_2019-3-29_14-56-8.png
     
    MNNoxMortem likes this.
  11. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    The 10 is the scale. If your ref count got to 11, that number would grow, and the entire graph would visually shrink.

    as to the 8, it means there are 8 references to that thing. Could be you loaded it 8 times. Could be instantiations. Could be that you loaded something else that has that thing as a dependency.