> For the complete documentation index, see [llms.txt](https://fish-networking.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fish-networking.gitbook.io/docs/fishnet-building-blocks/components/defaultscene.md).

# DefaultScene

## Description

This component will automatically change between online and offline scenes depending on server and client connective state. When a connection is started the online scene is loaded, and when disconnected the offline scene is loaded. This component must be placed on or beneath your [NetworkManager](/docs/fishnet-building-blocks/components/managers/network-manager.md).

{% hint style="success" %}
Check out the API page for specific methods [here](https://fish-networking.com/FishNet/api/api/FishNet.Component.Scenes.DefaultScene.html).
{% endhint %}

{% hint style="warning" %}
For this component to work, both the online scene and the offline scene must be selected in the inspector, and they must not be the same scene.
{% endhint %}

## Settings

<div align="left"><figure><img src="/files/OwKJQFk3Ou98IIH4Ihgq" alt=""><figcaption><p>Default settings</p></figcaption></figure></div>

### :gear: **Enable Global Scenes**

> This will load the scenes as global when enabled, or as connection when not. For more information on the differences see [Scene Loading](/docs/guides/features/scene-management/loading-scenes.md).

### :gear: **Start In Offline**

> This will load the server and clients into the offline scene when the game starts.

### :gear: **Offline Scene**

> This is the scene to load when offline.

### :gear: **Online Scene**

> This is the scene to load when online.

### :gear: **Replace Scenes**

> This can be set to replace all loaded scenes, or just online scenes with the Online or Offline scene. For more information see loading [Scene Loading - replacing scenes](/docs/guides/features/scene-management/loading-scenes.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://fish-networking.gitbook.io/docs/fishnet-building-blocks/components/defaultscene.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
