diff --git a/Editor/ShaderGenerator.cs b/Editor/ShaderGenerator.cs index 3520149..962b7af 100644 --- a/Editor/ShaderGenerator.cs +++ b/Editor/ShaderGenerator.cs @@ -849,6 +849,7 @@ private static void ApplyDefaultTextures(List contexts) { var importedShader = AssetImporter.GetAtPath($"{context.FilePath}/" + context.VariantFileName) as ShaderImporter; var customTextures = context.Modules.SelectMany(x => x.Properties).Where(x => x.DefaultTextureAsset != null).ToList(); + customTextures.AddRange(context.Shader.Properties.Where(x => x.DefaultTextureAsset != null).ToList()); if (importedShader != null) { importedShader.SetDefaultTextures(customTextures.Select(x => x.Name).ToArray(), customTextures.Select(x => x.DefaultTextureAsset).ToArray());