> For the complete documentation index, see [llms.txt](https://cw-systems.gitbook.io/modular-backgrounds/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cw-systems.gitbook.io/modular-backgrounds/galaxy.md).

# Galaxy

<figure><img src="https://1176174085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffj7GeaPJjLdBpDHprOav%2Fuploads%2FX088SFtSAQlSn90wsqrs%2FCover%20(1).png?alt=media&amp;token=01902d85-a609-442e-b9d1-8439cd3ba714" alt=""><figcaption></figcaption></figure>

**Modular Backgrounds - Galaxy** is a pack of high detail galaxy prefabs that can be added to the background of your 3D scenes.

You can place the prefabs anywhere in the sky, adjust their size, color, and other visual properties. Just keep in mind these are background-only objects, so you cannot fly toward them.

## How do I add galaxies to my scene?

## Step 1 - Background

Before you add background objects, make sure your scene has a GameObject with the **CwBackground** component attached.

{% hint style="info" %}
In your **Project** tab you can go to the **Plugins/CW/ModularBackgrounds/Shared/Prefabs** folder, find the Background prefab, and drag and drop it into your scene.
{% endhint %}

## Step 2 - Galaxies

In your Project tab you can go to the **Plugins/CW/ModularBackgrounds/Galaxy/Prefabs** folder, find the galaxy prefab you want, and drag and drop it into your scene.

{% hint style="info" %}
You should drag this on top of the background GameObject created in step 1.
{% endhint %}

## Step 3 - Adjust Settings

After you add the prefab to your scene, you can adjust its visual settings via the inspector.

To adjust the galaxy's position in the sky, you can modify the **Transform** component's **Rotation** setting.

To adjust the galaxy's size in the sky, you can modify the **CwBackgroundTexture** component's **Arc** setting.

To adjust the material settings you can find the **CwBackgroundTexture** component's **MaterialOverrides** setting, and click the **Add** button to a new one. For example, the **\_CW\_AlbedoShift** property can be overridden to change the galaxy colors.

Step 4 - Done!

Enter play mode and enjoy the high detail galaxy!

## How do I add stars to my scene?

### Step 1 - Add Stars&#xD;

In your **Project** tab you can go to the **Plugins/CW/ModularBackgrounds/Shared/Prefabs** folder. Inside here you can find the **Starfield1/2/3** and **Sun1** prefabs. Pick the prefab you want, and drag and drop it into your scene.

{% hint style="info" %}
You should drag this on top of the background GameObject created in the previous section.
{% endhint %}

### Step 2 - Done!&#xD;

Enter play mode and enjoy the high detail stars!
