In the mean time, we've come up with a relatively straightforward way to handle this situation so that we don't have to manually change settings when switching platforms. In short, we have a new Addressable Group schema to apply where we can specify overrides for particular packing settings per platform, and a new Addressables build script that looks for this schema and replaces the actual packed schema with the overrides, if appropriate.
The code is available here.
In addition to the code, there are several more manual steps that need to be taken before things become fully automated.
- Create a new PlatformBuildScriptPackedMode Addressable Data Builder and (ideally) place it in Assets/AddressableAssetsData/DataBuilders.
This should cover all the basics for using the platform overrides. If you want to automate builds and select the proper builder, we recommend following this example from Unity.
You can add more platforms as needed when you use the code, as well as more overrides for your specific use case. Right now, this schema does not support multi-editing, though that would be a very useful feature for future development.
No comments:
Post a Comment