# Sandbox.Game.IsOnMenu

```csharp
static bool IsOnMenu { get; set; }
```

True while the game is on its `MenuScene`. Changing to any other scene starts the game
([Sandbox.Game.ChangeScene](/api/Sandbox.Game/ChangeScene)), and changing back to it leaves any session.
[Sandbox.ISceneStartup](/api/Sandbox.ISceneStartup) fires on the menu scene too, so check this before hosting or spawning there.

Declared in [Sandbox.Game](/api/Sandbox.Game).
Assembly: `Sandbox.Engine`.
