> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/other/runtime-color-sampler/runtime-color-sampler-prefab-and-class/sampler-sphere.md).

# Sampler Sphere

v1.1

The Sampler Sphere is just a very small, simple white sphere with the default white material on it.

{% hint style="success" %}
You do not have to do anything to the Sampler Sphere. This page is for informational purposes only 🎉
{% endhint %}

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FOCD4X2hQzFibtl3SisdL%2FScreenshot%202023-11-07%20at%208.39.14%20PM.png?alt=media&amp;token=563bbcac-6ce2-457c-9bdf-a37caea28998" alt=""><figcaption></figcaption></figure>

Note the layer is set to **ColorSampler**.

{% hint style="warning" %}
Unity won't import layers when you import the project, and since you may already have layers set up, it would be dangerous for the package to do this for you. Please make sure you create a "ColorSampler" layer, and assign that to the sphere.
{% endhint %}

⚠️ Each light, if you'd like it to contribute to the sample, should include this layer in its Culling Mask.

⚠️ Your main camera can exclude this layer, so that it doesn't accidentally draw the Sampler Sphere in the scene.

The Sphere is very small, so that the chance of anything coming between it and the [**Sampler Camera**](/magic-pig-games/other/runtime-color-sampler/runtime-color-sampler-prefab-and-class/sampler-camera.md) is minimized. However, this is possible. If the Sampler Camera is blocked, the average color will change.&#x20;

If your [**Runtime Listener**](/magic-pig-games/other/runtime-color-sampler/runtime-listener.md) objects have a transition time set, then any impact from a brief block of the Sampler Sphere will me minimal, and perhaps not noticed at all.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/other/runtime-color-sampler/runtime-color-sampler-prefab-and-class/sampler-sphere.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
