# Installation

1. Add SDK to you project. This can be done in two ways:
   * Add SDK as [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to your repository by invoking the following command:

     ```
     git submodule add https://github.com/GameSwift/gameswift-unreal-sdk YourMainProjectDir/Plugins/GameSwiftUnrealSdk
     ```
   * Download this repository contents from [newest release](https://github.com/GameSwift/gameswift-unreal-sdk/releases/) and unpack the plugin to the `Plugins/GameSwiftUnrealSdk` folder. If you don't have a `Plugins` folder in your main project directory yet, create it.
2. Open Project Settings in the editor and navigate to `Plugins > GameSwiftSdk`. Fill in following fields: `ClientId`, `ClientRedirectUri`, `ClientAuthenticationSecret`. These secrets are [distributed by GameSwift](https://github.com/GameSwift/gameswift-unreal-sdk#contact-us).

   <figure><img src="https://camo.githubusercontent.com/d2fc3f25811a743818d70c7acbc17b83bdc76407500f6f27af45ab6bbb3f19f3/68747470733a2f2f63646e2e67616d6573776966742e696f2f67616d6573776966742f696d616765732f73646b2f756e7265616c5f73646b2f75655f706c7567696e2e706e67" alt=""><figcaption></figcaption></figure>
3. Add `GameSwiftSdk` to `PublicDependencyModuleNames` in your main `*.Build.cs` file.


---

# 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.gameswift.io/gameswift-products/unreal-sdk/installation.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.
