# Unity

1. Prepare the Unity project to be used.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd15IK33UGa5kIfOvcyC7rmqDz1wPiQPG4WJ2qVCBv8nZ25HKN4Hj36ID-UAuUomM5J6L8BEm2yS_26VtiJo5lX87PqMV-wxyY1tS51sRagRDTp0C5YJuofQR3mLjybZohZdaWW?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
2. Download the Unity Plugin from [**here**](https://www.moamocap.com/ko/download).

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeCJ1ifU_C-rlJltlABOxcjVE-JBcgafggIYtcY0XSfjCW8Ae1F4OvaBMVqY9aW0WfftcoJpa_Tnr4tOp8i0SXP8IrqZti3NuFqAIPOLWJDhdK2o06BYI8sitWMH9lw2JEwhosx?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
3. Right-click on **Assets** in the Project window and select **Custom Package**.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfiNvgoSgkWAOrYr6Uk5C-1GNo4NsJoHvkZSlgFXbzNHY0PH0hSX5tvWABiQxCqgEAILBDsMfBTv_ylaagtWngo44w1nuwCFgBcyanG_Ip-CIMDxvtRdEceMwtYn_93UB-6jmUq?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
4. Select the downloaded packages and click **Open**.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdXdJydBTsAyk4xfZji9fIhWizvNEILBcoBj49ILrzTXyCNNRswFp82U73xtlV-qu0idY0sBGJxn9msI64wSuRnnNDOYwk5NlJxTb5rN3E2W6uCVD8i07X2twr8j4lJOGwdlHUV?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
5. In the **Import Unity Package** window, click **Import**.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdnxZgCa_wztgR2PH2RdC3sZFDR6LDBePOedB5J-ItlCXj-t46HT3dceuQVWBs47bpD3qNwaq7sLm0jdBOK4eLyCTfYubChLdNYZkwuFrskDXG8qt9OHw9a9Yv6PfxUnbNcX8zbvA?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
6. Prepare a model with a Humanoid Avatar applied. e.g., Mixamo ([set up for Unity avatar](https://docs.unity3d.com/kr/2022.1/Manual/ConfiguringtheAvatar.html))<br>
7. Place **Moa Stream Client** and **Moa Avatar Stream** from the **MoA/Prefabs** folder into the scene.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeM2FTPd1sKx4uM1qNrbmI2Ga2cBGo_UiCB941K7s_zlGeoGDL22fREhjy1KwzZCM6Z6_5fsFaoK9KlRCHQ3bRpIP8h5FnwY_64WInqIpEBG_5cO6WLDDgYiasct5VokQneYXR2Dw?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
8. Set the server's port to be the same as the port configured in MoA Streaming (default port: 3333).

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdtp1xz8lryvjWI4ucvMw98j8NfivYJ79EWe9pVzxWij5RQd3vbDXxqwgWVyN3T3UJCXNK_yaG-uvg3dJcngJSbJxnpt-VmI5-VOtqwgvDKEoeaUsGRLnT1Uoygbb9CtmsTclwGGQ?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcyfl9xdR59eYaS-nWn0tPAWOax8Qv7Z_O8nX6a8z6kUAY9PPjf_qAhtOe_JPR2fxty51Pb-dJxjMgULhSNwYP6-b0DLlN7TKtEJ1cTWrsE1KxU4IbsrIwjGgviqowL0dfFliSkpA?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
9. In **MoA Avatar Stream**, assign **Moa Stream Client** to the Moa Stream Client field, and assign the Humanoid character to the Target Animator field.

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfX88VfoRmqKgTMGgncZj0Bc0ueLQudx20peQvdcIw5zh_YbRxan03qVLoqu8-nIi4f_vu9Ty9Xg70b-uHt4neFoY46DSByHbbtg-u2XMxPrbGExwqH0y8uMx1nI9stWoc9Fc7teA?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
10. If the data streaming from MoA is live data, set it to **Live**; if playing back recorded animation, switch it to **Animation**.

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdrK3PkLWtqordE6Fmm7P0tK6GoeccWTnOrG6eQ3pkY4qQN9zZViorklWtxo5DiiKm0lsfZIIZ1woRYoj8GC5zRnsefnsWkmjk17rxeYH9kaXkNGw-1e2Y56gWpYxksaI2QI2_BFQ?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
11. Enter the Actor Name set in MoA.

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdakYsSHHWPBWEIW7qRRT02K5YM-nFxFbvWmmsxNnoqkn4rXwPt9uet_zR5yNBI9OZwfrgtN75G9cg27hwOP5x0pAVBQyjNqmN84MrUwoB1t8wlvM4lHudVGvGXQHu9xaXiNrYmxA?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfGQmY0-eBDREcNKqax0KMQNkv9ktYEXeR2taBOzo3wSS9qiIFOSkbVLA7Aj3gr-YQdXeB0iO6qoh7Dtim9r50lwGt1LM0iNQtO35UiFk1I4lwlzEuDTR4LXkxg_BY8ttBX4Muf?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
12. You can check the character's joints through Visualization. (This feature is Editor-only.)

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdYHAf3h_Zd80dDv4zSbe6X-5JnieqrUtd3fL_7IXhpqFaaFoDJAl73EAhcvbgy7GOEK_S5XffvDMgvTDGa3jJn6pUd1oSyxmkPQeY5JEATHA_n2AmZBVV4JUX_Rq2-aCv8vACo?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>

* Bone Visualization is visible only in the Scene view and can be seen only when Gizmos are enabled.

  <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdr9oB9zh5Gv8s1a2DpRYmBaBUUuZFuLWTWH9eoQwJiSs4LmDCl1RIc_umEdlfd74eZYPF64kLNd5YDwHwqjGVMk-rWMYF-91qhJuf-8h-U5Kq5CLGTbAOPtu6Edj1toAq1XfQ62Q?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>

13. Press the Play button.

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcHWJspZpHZ8A5g9whq40GT3Tr9yprjo-ajSQr8fB3Ay-Ib5LXtId9U4tyDXjZdJwNxb5bfi98WbDFmFa53R0Qv7kMtQr4m-z5q68bxB8JxuSV4QpM4NF7Q2fsWaFKqU0L1EJ9N?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
14. Check if the desired data is coming through.

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfShg7KLsArkrxDvaq6SVtQ-FVKMWmBaJKmjbQwJeFCuxvv8PSCD5j95WxmGsFGHAR600sIc2lnUww4rD71D1w556tVFFPQwDPdWsMRV9y6A_fjUtPuiJtq0jFQsFBeWkoNAnDq?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>
15. To check the created example, open the scene in the **MoA/Sample** folder.
16. If the data is not reflected correctly, check the bone structure or the avatar setup of the Avatar. (Example of a proper avatar: Mixamo)

    <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcgP8CbypdhLEnDgDvd8o2UJvlgKZPKj-nilr_ssSKPk6gNhoAW9mODczzhXWqhGzHG3ZfKxcmbi0aA53PAC3wn-Uhx0FvykX833uUkcjH9-hTvgiZ9joFO1CmmPkx5GE0-cXDB?key=9m4xci9gSwV6EzgKszuVRHA-" alt=""><figcaption></figcaption></figure>

* The position of the Hips assigned to the Avatar should not be the same as the root.


---

# 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.moamocap.com/feature/network-streaming/streaming/unity.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.
