What’s the ordering of when the user defined scripts are called and when Addressables and Asset Bundle builds are done? I would like to add a hook to fetch additional data to be baked into an Addressables build before those assets are built.
It goes like this:
- Pre-build scripts (run outside of Unity, before Unity CLI execution)
- Pre-export method
- Build Addressables
- Build Player
- Post-export method (executes only if build succeeded, does not execute if Addressables-only build was run… which is probably a bug that I’ll add to the backlog)
- Post-build scripts (again, run outside of Unity)
so post build scripts work even if it’s an addressables only build?
Post-build scripts (shell scripting, ruby etc) do work however post-EXPORT scripts as you referenced in your other post do not. I wrote the fix for this however so this will be resolved soon.
post process build code in C# didn’t work neither , I just took made a custom addressable build script where I added my s3 upload code within the last try catch, so that if my upload makes errors, the addressable build fails and it doesn’t upload broken or missing content.
even if you fix post export Code , it won’t avoid these issues to happen, like not uploading all the bundles or any misbehaviour, it is more advantegeous if you add to addressables some part where we can post addressable build code that will also be supervised if it fails.
Thanks anyway
Post process build code will never work because content builds are completely separate from the Unity player build which is targeted by post process build scripts.