Addressables version choose on Unity6 and question

My project use Unity6 to create WebGL game and try use Addressables.
For the first i use Addressables 2.2.2 but find some problem about Addressable.CheckForCatalogUpdates().
With this topic:

So i change Addressables version to 1.21.21, but that have error message when i build player content:

Build Task CreateBuiltInShadersBundle failed with exception:
Object of Type UnityEditor.Build.Pipeline.Interfaces.IBundleExplictObjectLayout was not available within the BuildContext
  at UnityEditor.Build.Pipeline.BuildContext.GetContextObject (System.Type type) [0x00033] in .\Library\PackageCache\com.unity.scriptablebuildpipeline\Editor\Shared\BuildContext.cs:125 
  at UnityEditor.Build.Pipeline.BuildContext.GetContextObject[T] () [0x00000] in .\Library\PackageCache\com.unity.scriptablebuildpipeline\Editor\Shared\BuildContext.cs:113 
  at UnityEditor.Build.Pipeline.Tasks.CreateBuiltInShadersBundle.Run () [0x0004a] in .\Library\PackageCache\com.unity.scriptablebuildpipeline\Editor\Tasks\CreateBuiltInShadersBundle.cs:55 
  at UnityEditor.Build.Pipeline.BuildTasksRunner.Run (System.Collections.Generic.IList`1[T] pipeline, UnityEditor.Build.Pipeline.Interfaces.IBuildContext context) [0x0009d] in .\Library\PackageCache\com.unity.scriptablebuildpipeline\Editor\Shared\BuildTasksRunner.cs:56

and

SBP ErrorException
UnityEditor.GenericMenu:CatchMenu (object,string[],int)

This problem wasn’t happen with Addressables 2.2.2, maybe is 1.21.21 are too old to Unity6?

Unity6 package manager recommen use version 2.2.2 it was ok for me, but i really need Addressable.CheckForCatalogUpdates() work success.

In this case what should i do?
1.Try another version.
2.Chage 2.2.2 file CanUpdateContent’s value to 2 to instead?

Need help and thanks reading.

Hi. Please see this thread Addressable.CheckForCatalogUpdates() does not work - Unity Engine - Unity Discussions. At the end is a temporary workaround. I will update that thread when the fix is released.

1 Like