111
All checks were successful
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 3s
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 4s
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 19s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 5s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 2s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 33s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 6s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 4s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 16s
Plugin Library CI / publish (07.RKTools) (push) Successful in 3s
Plugin Library CI / publish (08.UniTask) (push) Successful in 3s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 15s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 2s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 3s

This commit is contained in:
2026-04-18 15:37:52 +08:00
parent 2fa0e6decb
commit c21600f7fa
2 changed files with 23 additions and 4 deletions

View File

@@ -21,9 +21,28 @@ namespace Stary.Evo
{ {
domainConfig = param1 as DomainConfig; domainConfig = param1 as DomainConfig;
#if UNITY_WEBGL #if UNITY_WEBGL
string typeName = $"{domainConfig.@namespace}.{domainConfig.className},{domainConfig.assemblyName}"; // 完整命名空间 string typeName = $"{domainConfig.@namespace}.{domainConfig.className},{domainConfig.assemblyName}";
Type type = Type.GetType(typeName); Debug.Log($"尝试获取类型: {typeName}");
Debug.Log($"ResStartState:加载资源,Type为:【{type}】"); Type type = Type.GetType(typeName);
if (type != null)
{
Debug.Log($"成功获取类型: {type.FullName}");
}
else
{
Debug.LogError($"无法找到类型: {typeName}");
// 尝试使用备选方案
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
var foundType = assembly.GetType($"{domainConfig.@namespace}.{domainConfig.className}");
if (foundType != null)
{
Debug.Log($"在程序集 {assembly.FullName} 中找到类型: {foundType.FullName}");
type = foundType;
break;
}
}
}
#else #else
Type type = param2 as Type; Type type = param2 as Type;
#endif #endif

View File

@@ -1,6 +1,6 @@
{ {
"name": "com.staryevo.tools", "name": "com.staryevo.tools",
"version": "1.4.21", "version": "1.4.22",
"displayName": "00.StaryEvo.Tools", "displayName": "00.StaryEvo.Tools",
"description": "This is an Framework package(后台服务器版本端口9527)", "description": "This is an Framework package(后台服务器版本端口9527)",
"unity": "2021.3", "unity": "2021.3",