(Case 1357228) Addressables "Shader Bundle Naming Prefix" settings don't seem to work

Unity 2019.4.20f1, Addressables 1.18.15

The Shader Bundle Naming Prefix settings don’t seem to work or the actual behavior is unexpected and needs to be documented.

Reproduce

  • Create project and add Addressables package
  • Select “Assets/AddressableAssetsData/AddressableAssetSettings.asset”
  • Change “Shader Bundle Naming Prefix” to “Custom” and enter “helloworld”
  • In Addressables Groups window choose “Build > New Build > Default Build Script”
  • Open directory “Library\com.unity.addressables\aa\Windows\StandaloneWindows64”

Actual

  • The option says “prefix” but Addressables actually changes the filename suffix
  • The generated “defaultlocalgroup_unitybuiltinshaders” is suffixed with a hash like defaultlocalgroup_unitybuiltinshaders_aeeaed3bcef7c50a6ce7c33848dd27ee.bundle

Expected

  • When the option says “prefix” it should prefix the name, not suffix it.
  • The custom name can’t be found in the generated filename or the documentation needs to be updated with the proper behavior.
1 Like

QA was able to reproduce the issue. Thank you!

1 Like

Thank you so much for showing how to make .bundle files! I’ve been making a mod for lethal company that uses that suffix, I’ve spent countless hours trying to figure out how to do it.