I'm trying to integrate QuickJS to Unity and I'm confused where to start #1074
Unanswered
Bigbossbro08
asked this question in
Q&A
Replies: 1 comment
-
Your question is too open-ended to answer in a specific manner. When you say "not unloading quickjs right away or graceful shutdown", what exactly do you mean? Shutting down is as easy as calling: js_std_free_handlers(rt);
JS_FreeContext(ctx);
JS_FreeRuntime(rt); But of course you have to make sure you're not holding onto any JSValues anymore. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So far, I did a rough copy paste based on qjs_exe. But I am facing problems. Like not unloading quickjs right away or graceful shutdown when game ends. What is the way the right way to go for it? I'm using dllexport approach. Any rough pseudo code would help.
Btw, I am using event system too and primarily the reason why I want quickjs instance to stay alive as long as it is needed when script is loaded.
Beta Was this translation helpful? Give feedback.
All reactions