# 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="https://352971571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnNWMLfYsbCzCnIbNrcP%2Fuploads%2FqwePxHtSQoLEYfx5Oz0V%2Fcoherence%20API%20Portal%20Card%20pic.jpg?alt=media&#x26;token=9e2a9f6e-7982-4ba8-9be0-24756df48f96">coherence API Portal Card pic.jpg</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="coherence-cloud/using-coherence-cloud-in-unity/game-services">game-services</a></td><td><a href="https://352971571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOnNWMLfYsbCzCnIbNrcP%2Fuploads%2FtklSnGrfRCsAApdA7oM9%2Fcoherence%20Game%20Services%20API%20Card%20pic.jpg?alt=media&#x26;token=c974f651-58da-4ad1-9dbb-5673002ecdec">coherence Game Services API Card pic.jpg</a></td></tr></tbody></table>


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
