Addressable Assets System 项目打包时报错runtimedata is null.

真机运行Addressable加载资源,SRDebbger查看log提示报错runtimedata is null. please ensure you have built the correct player content

解决办法:
资源首次使用时添加以下代码,例如使用Addressables.InitializeAsync()初始化前;

#if !UNITY_EDITOR
        PlayerPrefs.DeleteKey(Addressables.kAddressablesRuntimeDataPath);
#endif

猜你喜欢

转载自blog.csdn.net/weixin_44054505/article/details/116146260