Skip to content

Commit 6b48ea7

Browse files
boxrocket6803handsomematt
authored andcommitted
info about STANDALONE constant in compiled games
1 parent f304a8d commit 6b48ea7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/systems/game-exporting.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Game Exporting"
33
icon: "🧍"
44
created: 2025-10-10
5-
updated: 2025-10-10
5+
updated: 2026-04-08
66
---
77

88
# Game Exporting
@@ -16,6 +16,13 @@ You can choose to export your games as executables, so that you can put them on
1616

1717
These games don't have the typical restrictions that platform games have - there's no whitelist for code, and you can use standalone-exclusive APIs.
1818

19+
Games are compiled with an extra `STANDALONE` constant when exporting.
20+
```csharp
21+
#if STANDALONE
22+
//code that should only run in an exported game
23+
#endif
24+
```
25+
1926
## How to Export your Game
2027

2128
Exporting your game is done through the Export Wizard.

0 commit comments

Comments
 (0)