【m】10.StoryEditor [1.0.6] - 2026-01-08
### Fixed - 处理Sample无法下载的问题 - 处理Graph选择加载器时指定程序集后不产生选项的问题
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
此包的所有更新日志会被记录在此文件中
|
此包的所有更新日志会被记录在此文件中
|
||||||
|
|
||||||
|
## [1.0.6] - 2026-01-08
|
||||||
|
### Fixed
|
||||||
|
- 处理Sample无法下载的问题
|
||||||
|
- 处理Graph选择加载器时指定程序集后不产生选项的问题
|
||||||
|
|
||||||
## [1.0.5] - 2026-01-06
|
## [1.0.5] - 2026-01-06
|
||||||
### Changed
|
### Changed
|
||||||
- 添加更新日志
|
- 添加更新日志
|
||||||
|
|||||||
@@ -2,11 +2,9 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
|
||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Sirenix.Utilities;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using XNode;
|
using XNode;
|
||||||
|
|
||||||
@@ -138,8 +136,19 @@ namespace Stary.Evo.StoryEditor
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取继承 IResource 的所有类
|
/// 获取继承 IResource 的所有类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private HashSet<string> _iResourceTypes = AssemblyUtilities.GetTypes(AssemblyCategory.Scripts)
|
private HashSet<string> IResourceTypes
|
||||||
.Where(t => t.IsClass && typeof(IResource).IsAssignableFrom(t)).Select(t => t.ToString()).ToHashSet();
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
private HashSet<string> _iResourceTypes = new();
|
private HashSet<string> _iResourceTypes = new();
|
||||||
#endif
|
#endif
|
||||||
@@ -148,7 +157,7 @@ namespace Stary.Evo.StoryEditor
|
|||||||
/// 资源加载方式
|
/// 资源加载方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[BoxGroup("Export", centerLabel:true)]
|
[BoxGroup("Export", centerLabel:true)]
|
||||||
[LabelText("资源加载方式"), ValueDropdown(nameof(_iResourceTypes)),SerializeField]
|
[LabelText("资源加载方式"), ValueDropdown(nameof(IResourceTypes)),SerializeField]
|
||||||
private string loaderType;
|
private string loaderType;
|
||||||
|
|
||||||
private IResource _loader;
|
private IResource _loader;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "com.staryevo.storyeditor",
|
"name": "com.staryevo.storyeditor",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"displayName": "10.StoryEditor",
|
"displayName": "10.StoryEditor",
|
||||||
"description": "可视化剧本编辑器\n1.通过可视化图表编辑剧本内容\n2.将剧本导出为json\n3.解析剧本并执行",
|
"description": "可视化剧本编辑器\n1.通过可视化图表编辑剧本内容\n2.将剧本导出为json\n3.解析剧本并执行",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user