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

[Unity]/[UE] suggestion #1668

Open
ThreeQAQ opened this issue Mar 5, 2024 · 1 comment
Open

[Unity]/[UE] suggestion #1668

ThreeQAQ opened this issue Mar 5, 2024 · 1 comment

Comments

@ThreeQAQ
Copy link

ThreeQAQ commented Mar 5, 2024

Puerts的运行时hotreload功能基于v8的liveedit功能,但是使用中遇到了一些问题,已知的比如在更改后的函数中有使用了修改前未捕获的外部作用域的变量。
请问一哈车神,有没有相关的hotreload使用规范,以及该功能是否适合用于对外版本。

@chexiongsheng
Copy link
Collaborator

首先我不太建议把hotreload用到现网版本,收益不高但有风险。大多数游戏就启动时更新下,不会运行时更新,有紧急更新需求就要求玩家重启下问题不大。
我使用发现有闭包引用外部变量时确实容易更新不了,建议多用成员变量来保存状态。

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

2 participants