Hi!
I’m trying to use addressables with WebGL but can’t get it to work. The following code works when I export for Windows but I need it to work in WebGL. What do I need to change in this code to make it work in WebGL?
void Start()
{
Addressables.InitializeAsync().Completed += test;
}
private void test(AsyncOperationHandle<IResourceLocator> obj)
{
LoadFolder<TextAsset>();
}
public void LoadFolder<T>() where T : TextAsset
{
TextTot = new List<TextAsset>();
string label = "texts";
Addressables.LoadAssetsAsync<T>(label, null).Completed += objects =>
{
foreach (var go in objects.Result)
{
CardsTot.Add(go);
}
};
}
Thanks!