> 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/gasgiant.md).

# GasGiant

<figure><img src="https://1176174085-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffj7GeaPJjLdBpDHprOav%2Fuploads%2FxRNREfW4m4UEp1TH1kUu%2FCover%20(2).png?alt=media&amp;token=44caec0d-289e-4f97-917d-ce1060449198" alt=""><figcaption></figcaption></figure>

**Modular Backgrounds - Gas Giant** is a pack of high detail animated gas giant planet and ring 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 gas giants 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 - Planets

In your **Project** tab you can go to the **Plugins/CW/ModularBackgrounds/GasGiant/Prefabs** folder, find the planet 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 planet's position in the sky, you can modify the **Transform** component's **Rotation** setting.

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

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

### Step 4 - Done!

Enter play mode and enjoy the high detail planet!

## How do I add rings 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 - Rings

In your **Project** tab you can go to the **Plugins/CW/ModularBackgrounds/GasGiant/Prefabs** folder, find the ring 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 ring's position in the sky, you can modify the **Transform** component's **Rotation** setting.

To adjust the ring's size in the sky, you can modify the **CwBackgroundRing** component's **Radius** and **Thickness** setting.

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

### Step 4 - Done!

Enter play mode and enjoy the high detail ring!

{% hint style="info" %}
If you want the ring to go around a planet, the ring GameObject must be a sibling of the planet GameObject, and in the hierarchy the ring should go after (below) the planet. Also, the **Transform** component's **Rotation** settings should match for both the ring and the planet.
{% endhint %}

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