-
-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
I want to expose sort of a plugin system for my bevy app.
and i don't want different plugins to be using the same lua vm for four reasons:
- mix up of different variable names and their data (atleast in global scope) leading to different weird (or even malicious) errors.
- security. one plugin might require some kind of api key and this should not be accessed by other plugins.
- one plugin might accidentally mess up the whole global table and cause others to go down with it.
- run different plugins in different lua instances concurrently when they are not interacting with any global bevy data.
so, when i create a LuaScriptCollection, i want it to have its own lua vm.
is this possible right now?
also, I am wondering there could be a small Architecture.md explaining at a high level how this works. I am not familiar with what the terms ScriptHost or ScriptCollection really mean in the abstract concept sense.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation