【m】[1.0.5] - 2026-01-06

### Changed
- 添加更新日志
- 修改加载器选择范围,允许指定程序集检查
### Fixed
- 处理Sample在UnityPackage窗口不显示的问题
This commit is contained in:
mzh
2026-01-08 11:07:40 +08:00
parent 05b1bc90ff
commit cc3543519d
11 changed files with 56 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using Cysharp.Threading.Tasks;
using Newtonsoft.Json;
using Sirenix.OdinInspector;
@@ -126,14 +127,14 @@ namespace Stary.Evo.StoryEditor
#region
/// <summary>
/// 资源加载方式
/// </summary>
[BoxGroup("Export", centerLabel:true)]
[LabelText("资源加载方式"), ValueDropdown(nameof(_iResourceTypes)),SerializeField]
private string loaderType;
#if UNITY_EDITOR
[BoxGroup("Export")]
[SerializeField, ValueDropdown(nameof(GetAllAssemblyNames))]
private string assembly;
private IEnumerable<string> GetAllAssemblyNames() =>
AppDomain.CurrentDomain.GetAssemblies().Select(a => a.GetName().Name).OrderBy(n => n);
/// <summary>
/// 获取继承 IResource 的所有类
/// </summary>
@@ -143,6 +144,13 @@ namespace Stary.Evo.StoryEditor
private HashSet<string> _iResourceTypes = new();
#endif
/// <summary>
/// 资源加载方式
/// </summary>
[BoxGroup("Export", centerLabel:true)]
[LabelText("资源加载方式"), ValueDropdown(nameof(_iResourceTypes)),SerializeField]
private string loaderType;
private IResource _loader;
/// <summary>
/// 资源加载器