Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

空指针 #14

Open
FrenziedAI opened this issue Dec 13, 2022 · 1 comment
Open

空指针 #14

FrenziedAI opened this issue Dec 13, 2022 · 1 comment

Comments

@FrenziedAI
Copy link

//记录所有加载路径
HashSet allAssetLoadPath = new HashSet();
//构建所有分包
foreach (AssetsSetting assetsSetting in assetsSettings)
{
if (assetsSetting != null)
{
if (assetsSetting is AssetsLoadSetting)
{
//获取单个Bundle的配置文件
Build(assetLoadTable, assetsSetting as AssetsLoadSetting, allAssetLoadPath, alwaysIncludedShaders);
}
else
{
//处理原生资源
AnalysisOriginFile(assetLoadTable, assetsSetting as AssetsOriginSetting);

                }
            }
        }

下载demo之后只保留两个分包配置但是assetsSettings有四个元素,断点发现有2个空指针
QQ截图20221213110248

@mister91jiao
Copy link
Owner

搜索AssetLoadTable这个文件,在Assets Settings 设置里肯定有空的分包配置, 正常来讲如果是只通过界面操作是不会出现这种情况的,你应该是手动修改了AssetLoadTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants