-
Notifications
You must be signed in to change notification settings - Fork 92
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
How to dispose the noa instance? #141
Comments
Hi, do you mean you want to dispose the noa instance, so that it releases all its memory so you can recreate it later? It doesn't have any feature like that currently, though I don't think it would be too hard to make. On the other hand if you just want to be able to hide/show the game, I think it would be easier to have vue show/hide noa's container element, rather than destroying/recreating it. This would run faster, since destroying/recreating would mean the whole world needs to be regenerated and remeshed, etc. |
Yeah,that's what I mean.I want others to use my blockly to build games, so the game code is different every time and needs to be completely rebuilt. If I want to dispose the noa instance, what shall I do?Looking forward to your reply,have a nice day :). |
Hi... so the real answer is that the library should have a One alternate answer is, you may be able to use a single However changing |
I'm using VUE build the project, the game is inside a component, and I want to destroy the noa parameters when I destroy the component, so that I can open the component again and run the game.What should I do?
The text was updated successfully, but these errors were encountered: