update samples

pull/229/head
hevinci 2023-12-25 14:20:02 +08:00
parent e8e7696a4d
commit 4b68362fb8
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ public static class ShaderVariantCollector
CollectResult collectResult = AssetBundleCollectorSettingData.Setting.GetPackageAssets(EBuildMode.DryRunBuild, _packageName); CollectResult collectResult = AssetBundleCollectorSettingData.Setting.GetPackageAssets(EBuildMode.DryRunBuild, _packageName);
foreach (var assetInfo in collectResult.CollectAssets) foreach (var assetInfo in collectResult.CollectAssets)
{ {
string[] depends = AssetDatabase.GetDependencies(assetInfo.AssetPath, true); string[] depends = AssetDatabase.GetDependencies(assetInfo.AssetInfo.AssetPath, true);
foreach (var dependAsset in depends) foreach (var dependAsset in depends)
{ {
if (allAssets.Contains(dependAsset) == false) if (allAssets.Contains(dependAsset) == false)