# Load Layout

Use this rule to load an Editor layout as part of your workspace switch.

<figure><img src="/files/D3XP4zidMzGe4dZhSnm7" alt="" width="563"><figcaption></figcaption></figure>

### On workspace enabled

The specified Editor layout gets loaded.

### On workspace disabled

No behaviour.

### Setup

To load a layout, you first need to **save it to a file**.

Ensure the Editor is in the state you want (windows, focused windows, window size, etc.) and choose **Save Layout to File...** from the Layouts button in the top-right corner of the Unity toolbar:

<figure><img src="/files/ZLcugimRKBudWUTKrff7" alt="" width="326"><figcaption></figcaption></figure>

Save the `.wlt` file in a location of your choice, and then reference it in the Load Layout rule.


---

# Agent Instructions: 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:

```
GET https://tools.continis.io/hats/workspaces/workspace-rules/load-layout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
