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

# Unity

How do I actually use Arch in Unity? There are several ways, let's take a look at them because all of them have advantages and disadvantages.

## Dlls

The easiest way is to integrate Arch through its dlls. When building each version, dlls for the different versions are created and uploaded to [Arch CI/CD Pipeline](https://github.com/genaray/Arch/actions). You can simply put them in the assets/plugins folder and you can use arch everywhere. The only disadvantage is that you need not only Arch dlls but also the dlls of Arch's dependencies. This includes `Arch.LowLevel`, `Collections.Pooled` and possibly `Arch.System` and co depending on what you want to use additionally. An example project can be found [here](https://github.com/decentraland/unity-explorer/tree/dev/Explorer/Assets/Plugins/Arch).

## NuGetForUnity

Another option is to use [Unity Nuget.](https://github.com/GlitchEnzo/NuGetForUnity) This allows you to integrate nuggets such as the one from Arch relatively easily and makes things a lot easier for you.

## Sources

As a last resort, it is also possible to simply copy Arch's source code into unity. But since Arch uses a newer C# version, it is possible that some methods are not available and you have to replace them manually with Unity-compatible methods.


---

# 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://arch-ecs.gitbook.io/arch/unity.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.
