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

# coherence Scripting API

## Intro <a href="#coherence-sdk-for-unity" id="coherence-sdk-for-unity"></a>

This section of the documentation contains details of the scripting API that **coherence** provides for Unity.

{% hint style="info" %}
To use this information, you should be familiar with the basic theory and practice of scripting in Unity.
{% endhint %}

The scripting reference is organized according to the classes available to scripts which are described along with their methods, properties and any other information relevant to their use.

**Only a subset of the public API is documented**. Namespaces not documented in this site are not officially supported and are subject to change.

{% hint style="success" %}
The pages are furnished with example code ("examples").

**coherence** grants you a non-exclusive, non-transferable, non-sublicensable, royalty-free license to access, to use, to modify, and to distribute the examples without crediting **coherence**.
{% endhint %}

API are grouped by namespaces they belong to, and can be selected from the sidebar to the left.

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th align="center"></th><th align="center"></th><th></th><th><select></select></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center"><strong>Click here to visit the coherence API Portal</strong></td><td align="center"></td><td></td><td></td><td><a href="http://unityapi.coherence.io/">http://unityapi.coherence.io/</a></td><td><a href="/files/9buhJbaQfja4g9H8Zuq5">/files/9buhJbaQfja4g9H8Zuq5</a></td></tr><tr><td align="center"><strong>Or click here to take a look at our Game Services API</strong></td><td align="center"></td><td></td><td></td><td><a href="/pages/mSoR3X3LQJd74LX7u8Be">/pages/mSoR3X3LQJd74LX7u8Be</a></td><td><a href="/files/KsANxwsKbV3nKQBRCIcY">/files/KsANxwsKbV3nKQBRCIcY</a></td></tr></tbody></table>


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coherence.io/1.0/coherence-scripting-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
