-
Notifications
You must be signed in to change notification settings - Fork 66
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
ShowPanelData 应该如何使用,能给个示例代码吗 #10
Comments
这个参数我是从字母哥的EUI里抄过来的。ShowPanelData 里只有一个参数 Entity ContextData,我猜测它的用法是向打开的界面传递参数。也可以根据需要往 ShowPanelData 里加入其他的字段,比如控制界面的弹出方式、释放策略等。
在打开界面的地方这样使用:
这样在 LobbyPanelSystem.OShow 里就可以打印出 lobbyPanelContext.Name 了:
其他地方可能还需要根据你的需求做一些修改。 |
那 ShowPanelData 在哪销毁呢,每次打开都会创建 |
fuiComponent.ShowPanelAsync 函数里会把 ShowPanelData 挂到界面上,界面销毁的时候 ShowPanelData 跟着销毁。 |
No description provided.
The text was updated successfully, but these errors were encountered: