diff --git a/Assets/10.StoryEditor/CHANGELOG.md b/Assets/10.StoryEditor/CHANGELOG.md index 96a33f8..b452d97 100644 --- a/Assets/10.StoryEditor/CHANGELOG.md +++ b/Assets/10.StoryEditor/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog 此包的所有更新日志会被记录在此文件中 +## [1.0.7] - 2026-01-08 +### Fixed +- 处理IResource多程序集共存产生的无法选择加载器问题 + ## [1.0.6] - 2026-01-08 ### Fixed - 处理Sample无法下载的问题 diff --git a/Assets/10.StoryEditor/RunTime/VisualEditor/Graph/ScriptGraph.cs b/Assets/10.StoryEditor/RunTime/VisualEditor/Graph/ScriptGraph.cs index 18e1e65..820e74b 100644 --- a/Assets/10.StoryEditor/RunTime/VisualEditor/Graph/ScriptGraph.cs +++ b/Assets/10.StoryEditor/RunTime/VisualEditor/Graph/ScriptGraph.cs @@ -143,10 +143,7 @@ namespace Stary.Evo.StoryEditor if (string.IsNullOrEmpty(assembly)) return new(); var asm = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(a => a.GetName().Name == assembly); - return asm == null - ? new() - : asm.GetTypes().Where(t => t.IsClass && !t.IsAbstract && typeof(IResource).IsAssignableFrom(t)) - .Select(t => t.Name).ToHashSet(); + return asm == null ? new() : asm.GetTypes().Where(t => t.IsClass && !t.IsAbstract && t.GetInterfaces().Any(i => i.Name == nameof(IResource))).Select(t => t.Name).ToHashSet(); } } #else diff --git a/Assets/10.StoryEditor/package.json b/Assets/10.StoryEditor/package.json index 7e3765c..7c1c6c3 100644 --- a/Assets/10.StoryEditor/package.json +++ b/Assets/10.StoryEditor/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.storyeditor", - "version": "1.0.6", + "version": "1.0.7", "displayName": "10.StoryEditor", "description": "可视化剧本编辑器\n1.通过可视化图表编辑剧本内容\n2.将剧本导出为json\n3.解析剧本并执行", "unity": "2021.3",