> For the complete documentation index, see [llms.txt](https://docs.metaproprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metaproprotocol.com/metapro-protocol/unity-plugin/guides/quick-start/1.-editor/use-app-data-in-script.md).

# Use app data in script

To use app data in your scripts just simply add field of type MetaproAppSetup and assign scriptable object in inspector.

<figure><img src="https://lh6.googleusercontent.com/gC4lpP_FWZI1m7QPVbDjO8YvJR6V7BIGIiataBeNiEs999A4n4BliNQTkf42D4rC9LwvrRfaPT6RaGLn3OYzazvVmZ3I2G_LW5NASQ_pg5H-oMKRSq-reGJuhcVeUAToAY7AfawkHYmsmHMyWfbXFlPaSfQ6Cw2yip6nGU93gf09pyduTyCvTWNzSHLJ9A" alt=""><figcaption></figcaption></figure>

If you cannot use that type of assignment you can use another approach of searching for asset with type MetaproAppSetup and extracting from returned list needed asset.&#x20;

**WARNING:** This approach can lead to unexpected results when You have more than one scriptable object in your project. Use it carefully.

<figure><img src="https://lh5.googleusercontent.com/EKCYr04BoWnESy0gbP4lGg5nUeLw9nAlDtCVXnhoZfcRdV98KCokG-OJnKufHldC2UeTMZy9zpx-SFbGzTBgYOyS3dxr89KGWyo8W1rE7Pm61Lhj2eiLuBwHVhWqfeDv1G63n7iB4CTgrwBRGXnSSsJbKSMWLDCx09op_XH9vXfsPt314O_UMHpqgM49JQ" alt=""><figcaption></figcaption></figure>


---

# 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.metaproprotocol.com/metapro-protocol/unity-plugin/guides/quick-start/1.-editor/use-app-data-in-script.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.
