Skip to content

Commit d0e0167

Browse files
committed
fix(UI): 池复用打开分配新请求序列号
池复用路径从硬编码 -1 改为 ++m_Serial,使每次 Open 请求可观测可追踪。
1 parent da9a1ff commit d0e0167

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Runtime/UIManager.Open.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ protected override async Task<IUIForm> InnerOpenUIFormAsync(string uiFormAssetPa
8888

8989
if (uiFormInstanceObject != null)
9090
{
91-
// 如果对象池存在
92-
return InternalOpenUIForm(-1, uiFormAssetPath, uiFormAssetName, uiFormType, uiFormInstanceObject.Target, pauseCoveredUIForm, false, 0f, userData, isFullScreen);
91+
// 池复用也分配新的请求序列号,确保每次打开请求可观测。
92+
int serialId = ++m_Serial;
93+
return InternalOpenUIForm(serialId, uiFormAssetPath, uiFormAssetName, uiFormType, uiFormInstanceObject.Target, pauseCoveredUIForm, false, 0f, userData, isFullScreen);
9394
}
9495

9596
var uiForm = InnerLoadUIFormAsync(uiFormAssetPath, uiFormType, pauseCoveredUIForm, userData, isFullScreen);

0 commit comments

Comments
 (0)