Exporting

Standalone Code

When your game is exported as a standalone build, it runs outside of the s&box platform. This gives you access to APIs and capabilities that aren't available in platform games.

STANDALONE Constant

Exported games are compiled with a STANDALONE constant. Use this to branch logic between platform and standalone builds.

#if STANDALONE
// code that only runs in an exported game
#endif

Disabling the Whitelist

Platform games enforce an API whitelist that blocks potentially dangerous .NET APIs. Standalone games can disable this restriction entirely.

To disable the whitelist, open your project settings and turn on Disable Whitelist under Game Exporting. This gives you full access to the .NET runtime - but your game won't be publishable to the s&box platform while the whitelist is disabled. Exported builds are always compiled with the whitelist off.

Source: Facepunch/sbox-docs (CC-BY-4.0) · updated 2026-09-03. Read it rendered on the official docs.

More in Exporting

Community wiki — not affiliated with Facepunch Studios. For the latest and most authoritative information, see the official developer wiki.