> For the complete documentation index, see [llms.txt](https://motiongamesstudio.gitbook.io/magic-lightmap-switcher/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motiongamesstudio.gitbook.io/magic-lightmap-switcher/using/presets-baking-and-storing.md).

# Presets, Baking And Storing

Magic Lightmap Switcher provides several ways to bake and store lightmap and other scene data.

## 1. Presets

Presets provide an easy and fast way to record and save settings for various scene elements. Each preset is actually a snapshot of the scene settings for different lighting options.

### 1.1 Creating Presets

To create a preset, go to the Storing tab of the [MLS Manager](/magic-lightmap-switcher/system-components/mls-manager-window.md) window and click **"Create New\..."** in the Presets section.

<figure><img src="/files/Za8HPlIpo13NT7Z4kLb1" alt=""><figcaption></figcaption></figure>

After clicking this button, a new preset will be created and added to the list, and the [Preset Manager](/magic-lightmap-switcher/system-components/mls-preset-manager.md) window will open, in which you will see the options for the preset you just created.

<figure><img src="/files/6ayA0m3w1nE3kqD4yHvo" alt=""><figcaption></figcaption></figure>

Now you can press the **"Start Recording"** button to activate the preset recording mode. MLS will capture any changes you make to the [supported](/magic-lightmap-switcher/using/tracking-object-parameters.md) objects of the scene or project. When any changes are committed, the object will be added to the appropriate group in the preset.

<figure><img src="/files/FNxzDLf6QtgcfCiH7dVh" alt=""><figcaption></figcaption></figure>

When you have made all the necessary changes to the scene, you can duplicate the preset, then start recording the active preset again and make new changes. Eventually, you will see a list of presets you have created in the [MLS Manager](/magic-lightmap-switcher/system-components/mls-manager-window.md) window.

<figure><img src="/files/qKR7TYfxbJvpumfk0mdH" alt=""><figcaption></figcaption></figure>

## 1.1 Baking Presets

When you click on the **"Load"** button next to the corresponding preset, the settings recorded in the preset will be applied to the scene. Then, you can start baking in Once, Queue mode, or just start baking manually as usual.

### 1.1.1 Once

Options are available in this mode:

* Store Baked Lightmap - available if you have already baked the scene. This starts the process of saving the data of the currently baked lightmap.

{% hint style="info" %}
Please note that this option is available if you already have baked lightmaps, make sure that the baked lighting matches the preset.
{% endhint %}

* Bake And Store Lightmap - starts the baking process of the loaded preset and automatically stores data after baking is completed.

### 1.1.2 Queue

In this mode, you can bake all the presets you have created automatically. After clicking the **"Bake And Store Lightmaps Queue"** button, the process of sequentially baking and saving all presets selected in the **"Presets"** list will be started. For more information about all options, see [here](/magic-lightmap-switcher/system-components/mls-preset-manager.md).

## 2. Manual

In this case, there are two workflow options:

* You set up the lighting on the scene and bake it using standard methods. In this case, after the baking is completed, you will only need to set the name of the lightmap and click the **"Store Baked Lightmap"** button.
* You set up the lighting on the scene, assign a name of the lightmap, and click the **"Bake And Store Lightmap"** button. After that, the baking process will be started and the baked data will be automatically saved.

<figure><img src="/files/FfchKTfGwkEB9j2FdSo4" alt=""><figcaption></figcaption></figure>

Since you are not creating presets in this workflow, MLS does not know which objects it needs to track in order to then interpolate in lighting scenarios. This is easy to fix, you need to open a special [MLS Tracker](/magic-lightmap-switcher/using/tracking-object-parameters.md) overlay and manually specify which MLS objects in the scene or project it should register changes.

{% hint style="warning" %}
Please note that if you are using Adaptive Probe Volumes, you will need to manually create lighting scenarios in Baking Set so that MLS can control the blending of presets of the built-in APV Unity system. The names of the presets must match the names that you assign to the lightmaps before saving.&#x20;

Don't forget to activate the scenario in the Baking Set for which you are baking the lighting at the moment.
{% endhint %}


---

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

```
GET https://motiongamesstudio.gitbook.io/magic-lightmap-switcher/using/presets-baking-and-storing.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.
