

終止支援通知： 將於 2026 AWS 年 5 月 20 日結束對 的支援 AWS SimSpace Weaver。2026 年 5 月 20 日之後，您將無法再存取 SimSpace Weaver 主控台或 SimSpace Weaver 資源。如需詳細資訊，請參閱[AWS SimSpace Weaver 終止支援](https://docs.aws.amazon.com/simspaceweaver/latest/userguide/simspaceweaver-end-of-support.html)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 啟動 Unreal Engine 檢視用戶端
<a name="working-with_unreal-client"></a>

 導覽至：

```
{{sdk-folder}}/Samples/PathfindingSample/tools/cloud
```

1. 請執行下列其中一個命令：
   + Docker： `python quick-start.py`
   + WSL： `python quick-start.py --al2`

1. 取得 IP 地址和「實際」連接埠號碼。這些將位於執行 quick-start.py 的主控台輸出中，或依照 中的程序取得[取得自訂應用程式的 IP 地址和連接埠號碼取得 IP 地址和連接埠號碼](working-with_get-ip.md)。

1.  導覽至：

   ```
   sdk-folder/Clients/TCP/UnrealClient/lib
   ```

1.  執行下列命令來建置 NNG 程式庫：

   ```
   cmake -S . -B build 
   cmake --build build --config RelWithDebInfo 
   cmake --install build
   ```

1.  在**文字編輯器**中，開啟 `view_app_url.txt`。

1.  使用檢視應用程式的 IP 地址和連接埠號碼更新 URL： `tcp://ip-address:actual-port-number`（看起來應該像 `tcp://198.51.100.135:1234`)。

1.  在 **Unreal 編輯器**中，選擇**播放**。

## 故障診斷
<a name="working-with_unreal-client_troubleshooting"></a>
+  **NNG CMake 安裝步驟失敗，並顯示「可能需要管理權限」：**

  ```
  CMake Error at build/_deps/nng-build/src/cmake_install.cmake:39 (file):
    file cannot create directory: C:/Program Files
    (x86)/ThirdPartyNngBuild/lib.  Maybe need administrative privileges.
  Call Stack (most recent call first):
    build/_deps/nng-build/cmake_install.cmake:37 (include)
    build/cmake_install.cmake:73 (include)
  ```
  +  **解決方法：**如果 UnrealClient/lib 目錄中`nng.so`存在 `nng.lib`或 ，則可以安全地忽略此錯誤。如果沒有，請嘗試在具有管理員權限的終端機中執行 cmake 建置命令。
+  **「CMake to find a package configuration file provided by nng」：**

  ```
  CMake Error at CMakeLists.txt:23 (find_package):
  By not providing "Findnng.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "nng", but
   CMake did not find one.
  ```
  +  **解決方法：**CMake 在尋找`Findnng.cmake`檔案時遇到問題。使用 CMake 建置時，請新增引數 `-DTHIRD_PARTY_LIB_PATH sdk-folder/ThirdParty`。在重新執行 CMake 建置之前，請確定 `Findnng.cmake` 檔案仍在 `ThirdParty`目錄中。

    ```
    cmake -S . -B build -DTHIRD_PARTY_LIB_PATH sdk-folder/ThirdParty
    cmake --build build --config RelWithDebInfo 
    cmake --install build
    ```