Skip to content

Sandboxing

Thomas Cashman edited this page Sep 5, 2018 · 2 revisions

Sandbox Support

For security reasons you may want to sandbox code execution to prevent malicious code being executed via your game. See the table below for which GameScriptingEngine implementations support sandboxing.

Implementation Sandbox Supported
GroovyGameScriptingEngine No
KotlinGameScriptingEngine No
LuaGameScriptingEngine Yes
PythonGameScriptingEngine No
RubyGameScriptingEngine No

Enabling Sandboxing

By default sandboxing is enabled if the GameScriptingEngine implementation supports it. However, passing false to the constructor will disable it.