Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当频繁打开一个界面的时候会创建一个新的界面,而不是打开池子里的。 #20

Open
shengruqing opened this issue Mar 14, 2025 · 0 comments

Comments

@shengruqing
Copy link

例如频繁调用:GameApp.UI.OpenUIFormAsync(Utility.Asset.Path.GetUIPath(nameof(UITips)),false, “飘字”);每次调用都会打开一个新的界面。初步测试的原因是因为第一次打开之后Tips处于激活状态,导致获取池子对象的时候获取失败,所以又创建了一个新的。我目前的解决办法是,不判断激活状态,直接返回池子中的数据。激活状态,我直接用新数据刷新激活的界面就可以了,不需要打开一个新的界面。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant