> For the complete documentation index, see [llms.txt](https://docs.candy-smith.com/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.candy-smith.com/main/sweet-candy-sugar-match-3/setup-background.md).

# Setup background

How to replace, add, assign, and test level-dependent backgrounds in Sweet Candy Sugar Match 3.

Backgrounds are selected from the `Pictures` array in 20-level groups:

| Element | Levels | Current sprite  |
| ------- | ------ | --------------- |
| 0       | 1–20   | `background_01` |
| 1       | 21–40  | `background_02` |
| 2       | 41–60  | `background_03` |
| 3       | 61–80  | `background_04` |
| 4       | 81–100 | `background_05` |

Files are stored in `Assets/SweetSugar/Textures_png/Backgrounds`. Use 2048 × 1536 PNGs (4:3).

### Add or reorder backgrounds

1. Import the PNG into the backgrounds folder with the settings above.
2. Open `Assets/SweetSugar/Scenes/game.unity`, select `Background`, and update **Background > Pictures**.

<figure><img src="https://98360660-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTAtaJoxpORkxXbaFi9tt%2Fuploads%2F3gvkSofXZfByKgG9URWd%2Fimage.png?alt=media&amp;token=83a24c34-0132-47ca-9dd7-9f9c7ebdc3d9" alt=""><figcaption></figcaption></figure>

If you want to use static map Open `Assets/SweetSugar/Scenes/gameStatic.unity` and copy the same sprite order to:

* the gameplay `Background` component;
* `SafeArea/Background` > **Backgrounds For Static Map**.

Save both scenes. To support another 20 levels, increase **Size** in every list and assign the new last element. Element 5 covers levels 101–120.

###
