bevy_mod_scripting icon indicating copy to clipboard operation
bevy_mod_scripting copied to clipboard

Sandboxing scripts in shared contexts

Open makspll opened this issue 9 months ago • 0 comments

Currently the shared contexts feature has very limited uses, due to the fact scripts don't actually get sandboxed, meaning every single callback will be overwritten the moment another script using it gets loaded.

One way we can do this is by loading each script into a "sub"-context within the context, and then before handling, loading each sub-context into the global namespace

makspll avatar Mar 02 '25 12:03 makspll