pull/51/head
hevinci 2022-11-03 12:02:10 +08:00
parent 1c7a79f7d7
commit ecfced7195
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,10 @@ namespace YooAsset.Editor
shaderBundleReferenceList.Add(valuePair.Key);
}
// 注意:没有任何资源依赖着色器
if (shaderBundleReferenceList.Count == 0)
return;
// 获取着色器资源包索引
Predicate<PatchBundle> predicate = new Predicate<PatchBundle>(s => s.BundleName == shadersBunldeName);
int shaderBundleId = patchManifest.BundleList.FindIndex(predicate);