From 4b68362fb8ff0aab72e71ebe4dd158f3456dda73 Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 25 Dec 2023 14:20:02 +0800 Subject: [PATCH] update samples --- .../Editor/ShaderVariantCollector/ShaderVariantCollector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/ShaderVariantCollector/ShaderVariantCollector.cs b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/ShaderVariantCollector/ShaderVariantCollector.cs index 40fe733..5a95367 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/ShaderVariantCollector/ShaderVariantCollector.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Scripts/Editor/ShaderVariantCollector/ShaderVariantCollector.cs @@ -146,7 +146,7 @@ public static class ShaderVariantCollector CollectResult collectResult = AssetBundleCollectorSettingData.Setting.GetPackageAssets(EBuildMode.DryRunBuild, _packageName); 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) { if (allAssets.Contains(dependAsset) == false)