sttz / trimmer

An editor, build and player configuration framework for the Unity game engine.
MIT License
104 stars 8 forks source link

`OptionBuildAddressables` does not call `IDataBuilder.ClearCachedData` #19

Closed JesseTG closed 1 year ago

JesseTG commented 1 year ago

Addressables can generate data that's useful during the build, but not afterwards. This data can then be cleared with the IDataBuilder.ClearCachedData method. It can be called via a menu item in the editor, but it can be called in scripts as well.

I'd like Trimmer's OptionBuildAddressables to optionally call this method after a build. I say optionally because if the build goes wrong, these intermediate files can help with debugging.

JesseTG commented 1 year ago

Uh oh, I misunderstood the purpose of IDataBuilder and fucked this up. The code I submitted, as written, will likely delete the runtime Addressables directory. My bad. I'm fixing this now.