- 支持 GET、POST、PUT、DELETE、PATCH、HEAD、OPTIONS 请求方法
- 异步执行,不阻塞游戏线程
- 多执行引脚(成功/失败/超时)
- 支持自定义 Headers
- 支持多种认证方式(Bearer Token、Basic Auth、API Key)
- 可配置超时时间
- 完整的 JSON 构建和解析工具链
将 OpenRequests 文件夹复制到项目的 Plugins 目录,重新生成项目文件后编译。
主要的异步请求节点,支持完整配置。
输入:
URL- 完整请求地址Method- 请求方法配置(预设 + 自定义)Body- 请求体(JSON 字符串)Config- 请求配置(超时、Content-Type、认证、自定义头)
输出引脚:
On Success- 2xx 状态码时触发On Failure- 非 2xx 或网络错误时触发On Timeout- 请求超时时触发
简化版请求节点,使用默认配置。
Build JSON String Field- 构建字符串字段"key": "value"Build JSON Number Field- 构建数值字段"key": 123.45Build JSON Integer Field- 构建整数字段"key": 123Build JSON Bool Field- 构建布尔字段"key": trueBuild JSON Null Field- 构建空值字段"key": nullBuild JSON Array Field- 构建数组字段"key": [...]Build JSON Object Field- 构建对象字段"key": {...}Build JSON Raw Field- 构建原始 JSON 字段
Merge JSON Fields- 合并多个字段(数组输入)Merge Two JSON Fields- 合并两个字段Finish Build JSON Object- 完成构建 JSON 对象{...}Finish Build JSON Array- 完成构建 JSON 数组[...]Wrap As JSON Object- 包装为 JSON 对象Wrap As JSON Array- 包装为 JSON 数组
Select from JSON- 从 JSON 中选取字段(支持嵌套路径如data.user.name)Get JSON String Field- 获取字符串字段Get JSON Number Field- 获取数值字段Get JSON Bool Field- 获取布尔字段Get JSON Array Field- 获取数组字段Get JSON Array Length- 获取数组长度Get JSON Array Element- 获取数组元素Parse JSON to Map- JSON 转 MapMap to JSON String- Map 转 JSON
Build URL- 构建完整 URLAdd Query Parameters- 添加查询参数URL Encode/URL Decode
Base64 Encode/Base64 Decode
Is Success Status Code- 判断是否成功Get Status Code Description- 获取状态码描述
HTTP Request (Simple)
├─ URL: "https://api.example.com/users"
├─ Method: GET
└─ Body: ""
├─ On Success → 处理响应
└─ On Failure → 显示错误
Build JSON String Field ("name", "John") ─┐
Build JSON Number Field ("age", 25) ─┼─→ Make Array → Merge JSON Fields → Finish Build JSON Object
Build JSON Bool Field ("active", true) ─┘
输出: {"name": "John", "age": 25, "active": true}
HTTP Request
├─ URL: "https://api.example.com/data"
├─ Method: POST
├─ Body: (构建的 JSON)
└─ Config:
├─ Timeout: 30s
├─ Content-Type: application/json
└─ Auth:
├─ Preset: Bearer Token
└─ Token: "your-api-key"
FHttpResponseData:
StatusCode(int32) - HTTP 状态码Content(FString) - 响应内容bSuccess(bool) - 是否成功ErrorMessage(FString) - 错误信息Headers(TMap) - 响应头
- Core
- CoreUObject
- Engine
- HTTP
- Json
- JsonUtilities
- Unreal Engine 5.1+
- Windows / Mac / Linux
MIT License
Chen Xuanyi