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

Regist canvas & Unregist Canvas #23

Open
Starsky-Synlitec opened this issue Jun 2, 2020 · 0 comments
Open

Regist canvas & Unregist Canvas #23

Starsky-Synlitec opened this issue Jun 2, 2020 · 0 comments

Comments

@Starsky-Synlitec
Copy link

目前我看到的接口是:
createScopedThreejs
来绑定一个canvas
能不能做一个动态的绑定,比如在某个页面绑定某个页面的canvas,换个页面就取消上个页面的canvas然后绑定新的canvas。
就是提供两个接口:RegistCanvas还有UnregistCanvas。
这样其实其他的three.js定义的对象不需要删除可以公用。只是最后显示刷新的canvas可以动态改变。

如果实现有问题的话,请问有没有卸载函数,目前只有createScopedThreejs创建。删除内存和卸载呢?

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