Skip to content

Commit cd2c0c7

Browse files
committed
[修复] UGUI 的路径匹配
1 parent 86465c4 commit cd2c0c7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Runtime/UIComponent.Open.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,14 @@ public async Task<T> OpenAsync<T>(object userData = null, bool isFullScreen = fa
127127
var attribute = typeof(T).GetCustomAttribute(typeof(OptionUIConfig));
128128
if (attribute is OptionUIConfig optionUIConfig)
129129
{
130-
uiFormAssetPath = Utility.Asset.Path.GetUIPath(optionUIConfig.PackageName);
130+
if (optionUIConfig.Path.IsNullOrWhiteSpace())
131+
{
132+
uiFormAssetPath = Utility.Asset.Path.GetUIPath(optionUIConfig.PackageName);
133+
}
134+
else
135+
{
136+
uiFormAssetPath = optionUIConfig.Path;
137+
}
131138
}
132139

133140
return await OpenAsync<T>(uiFormAssetPath, userData, isFullScreen, isMultiple);

0 commit comments

Comments
 (0)