> For the complete documentation index, see [llms.txt](https://occlusionn.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://occlusionn.gitbook.io/docs/documentation/decal-collider/quickstart.md).

# Quickstart

<figure><img src="https://1631263562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBgVkVxOGufL1cAZlCCE%2Fuploads%2FCMWtnxnC7TmSWCeHWxlL%2FDecal.png?alt=media&amp;token=0eb8abac-2517-4393-9fe7-01353967e40a" alt=""><figcaption></figcaption></figure>

## Install from Asset Manager

* Open **Unity → Window → Package Manager → My Assets**.
* Find **Decal Collider** → **Download** → **Import**.
* The package content (Docs, examples, scripts) appears in your Project window.
* Open an example scene to verify everything is working.

{% hint style="info" %}
Want to learn about package manager window? Head to the [Unity's Package Manager](https://docs.unity3d.com/6000.1/Documentation/Manual/upm-ui.html) section to learn more.
{% endhint %}

<div align="left" data-full-width="false"><figure><img src="https://1631263562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpBgVkVxOGufL1cAZlCCE%2Fuploads%2F1rIDLCIKeEi5dUdUHFc7%2FDC-Renderer.png?alt=media&amp;token=291e748a-9bfe-487d-bfe9-6eb52d7fafa6" alt=""><figcaption></figcaption></figure></div>

## Automatic Render Pipeline Setup

Decal Collider automatically detects your project's active Render Pipeline (Built-in, URP or HDRP) on first import and installs the correct shader variant silently in the background.

No manual installer steps are required.

If you later switch render pipelines, simply reimport the asset to trigger the auto-setup again.

***

## Load the Render Pipeline version

* Go to: `DecalCollider/Renderers/`
* Open the folder that matches your project (**Built-in**, **URP**, or **HDRP**).
* **Double-click** the installer/import file inside → **Import**.
* If you switch pipelines later, re-import the matching variant here.\
  *Pink (magenta) materials = wrong or missing variant.*

***

## First Decal

* Add the **Decal Collider** component to any GameObject.
* In the Inspector, pick a **projection direction**, set **box size**, **depth / max distance**, and choose **mesh/collider detail**.
* (Optional) Enable **Alpha Mask** when your decal texture has transparency so empty pixels are trimmed from the mesh and collider.
* Use scene handles to **move/rotate/scale** the projection box until the preview fits.
* Press **Play** (or build) — the **decal mesh** and **collider** are generated/updated automatically.
