文档Documentation

Super Tool 使用手册Super Tool reference

覆盖安装启用、九类模块的全部蓝图节点、路径规则与授权说明。适用于 Unreal Engine 5.1 / Win64。 Installation, every Blueprint node across the nine modules, path rules and licensing. Written for Unreal Engine 5.1 / Win64.

01简介Overview

Super Tool 是一款面向虚幻引擎开发者的实用工具插件。它把四类高频的运行时能力封装成蓝图节点:网络通信、外部文件加载、窗口控制、INI 配置;并进一步补齐了 HTTP、JSON 与系统工具。 Super Tool is a utility plugin for Unreal Engine developers. It packages high-frequency runtime capabilities into Blueprint nodes: networking, external file loading, window control and INI config — plus HTTP, JSON and system tools.

所有功能由 C++ 实现,通过蓝图函数库(UBlueprintFunctionLibrary)与可直接放进关卡的可放置 Actor 暴露给蓝图。调用这些节点不需要写任何 C++ 代码。 Everything is implemented in C++ and exposed through Blueprint function libraries (UBlueprintFunctionLibrary) plus placeable actors. Calling these nodes requires no C++ at all.

模块Module 蓝图入口Blueprint entry point
SuperTool|UDPActor UDPActor UDP
SuperTool|TCPActor TCPClientActor TCPClient
SuperTool|WebSocketActor WebSocketClientActor WebSocketClient
SuperTool|HTTP异步节点,无需 ActorAsync nodes, no actor needed
SuperTool|JSON函数库 JsonToolLibrary JsonTool
SuperTool|File函数库 FileToolLibrary FileTool
SuperTool|Window函数库 WindowToolLibrary WindowTool
SuperTool|Config函数库 ConfigLibrary / ConfigBlueprintLibraryLibraries ConfigLibrary / ConfigBlueprintLibrary
SuperTool|System函数库 SystemToolLibrary SystemTool

02环境要求Requirements

项目Item 要求Requirement
引擎版本Engine version Unreal Engine 5.1Unreal Engine 5.1
支持平台Platforms Win64(模块白名单仅此一项)Win64 only — it is the only entry in the module allow-list
模块类型Module type Runtime
编译环境Toolchain 通常无需编译;若提示模块缺失,需 Visual Studio 2019 16.11+ 或 2022(含 C++ 游戏开发工作负载)Usually none; if a module is reported missing, Visual Studio 2019 16.11+ or 2022 with the C++ game development workload
分发形式Distribution FAB 分发,通过 Epic Games Launcher 安装FAB, installed through the Epic Games Launcher
插件基于 UE 5.1 开发,代码使用了 5.1 时代的 API。能安装到哪些引擎版本,以 FAB 商品页列出的为准;未列出的版本未经验证,不保证可用。 The plugin targets UE 5.1 and uses the APIs of that era. Supported engine versions are the ones listed on the FAB page — versions not listed are untested and not guaranteed to work.

03安装与启用Install & enable

插件通过 FAB 分发,源码不公开。安装不需要手动拷贝文件,也不需要改工程配置,全程在 Epic Games Launcher 里完成。 The plugin is distributed through FAB and its source is not published. No manual file copying and no project config edits — the whole install runs in the Epic Games Launcher.

3.1 从 FAB 添加到项目3.1 Add to a project from FAB

  1. 在 FAB 商品页 完成获取,插件随即进入你的 FAB 库。Acquire it on the FAB listing; it lands in your FAB library right away.
  2. 打开 Epic Games Launcher → 库(Library),在 FAB 库区域找到 Super Tool。Open Epic Games Launcher → Library and find Super Tool in the FAB section.
  3. 点 Add to Project,选择目标引擎版本与项目;也可以选择安装到引擎,供该引擎下的所有项目共用。Click Add to Project and pick the engine version and target project — or install it to the engine so every project on that engine can use it.
  4. 插件会写入 YourProject/Plugins/SuperTool/。The plugin is written to YourProject/Plugins/SuperTool/.

3.2 在项目里启用3.2 Enable it in the project

打开项目,进入 编辑 → 插件,搜索 Super Tool 并勾选,按提示重启编辑器。之后节点出现在蓝图分类 SuperTool|* 下。 Open the project, go to Edit → Plugins, search for Super Tool and tick it, then restart the editor when prompted. Its nodes then appear under SuperTool|*.

如果你更习惯直接改工程文件,也可以在 .uproject 里加入同样的条目——效果与在面板里勾选一致。 If you prefer editing the project file, add the same entry to .uproject — it is equivalent to ticking the box.

{
  "Plugins": [
    { "Name": "SuperTool", "Enabled": true }
  ]
}

3.3 升级到新版本3.3 Updating

新版本同样通过 FAB 分发。在库里重新执行一次 Add to Project 覆盖安装即可,项目里的蓝图与配置不需要迁移。若团队协作,请把 Binaries、Intermediate、Saved 排除在版本控制之外,由每位成员各自安装。 New builds ship through FAB too. Run Add to Project again to overwrite the install — Blueprints and project config need no migration. On a team, exclude Binaries, Intermediate and Saved from version control and let each member install locally.

如果首次打开项目时编辑器提示“模块缺失 / 需要重新编译”,说明该版本需要在本地编译一次:安装 Visual Studio(含 C++ 游戏开发工作负载),右键 .uproject → Generate Visual Studio project files,选 Development Editor / Win64 编译即可。纯蓝图项目需要先添加一个 C++ 类才能编译。 If the first launch reports a missing module and asks to rebuild, that build needs one local compile: install Visual Studio with the C++ game development workload, right-click the .uproject → Generate Visual Studio project files, then build Development Editor / Win64. A Blueprint-only project must add one C++ class before it can compile.
插件不提供公开源码。需要定制功能、二开授权或遇到无法安装的情况,请通过 作者主页 联系。 Source is not published. For custom work, source licensing, or install problems you cannot resolve, reach out through the author's site.

04UDP 通信UDP networking

UDP 是可直接放置到关卡中的 Actor。适合低延迟、允许丢包的数据流:传感器、控制信号、多机同步广播。 UDP is an actor you can drop into a level. It suits low-latency, loss-tolerant streams: sensors, control signals, broadcast sync between machines.

节点Node说明Description
Start UDP Receiver 绑定端口开始接收。参数:Socket Name、Listen Port。重复调用会先关闭旧 Socket 再重建。Bind a port and start listening. Params: Socket Name, Listen Port. Calling again closes the old socket first.
Start UDP Receiver With Events 事件驱动版本:绑定后由内部轮询触发接收事件,不必自己写 Tick 循环。Event-driven variant: after binding, internal polling fires receive events so you do not write your own tick loop.
Stop UDP Receiver 关闭并释放接收 Socket;Actor 结束播放时也会自动调用。Close and release the socket. Also called automatically on EndPlay.
Receive UDP 读取一个数据报并转字符串。参数 Data Format,输出 Out String。没有数据时返回 false。Read one datagram into a string. Takes Data Format, outputs Out String. Returns false when nothing is queued.
Receive UDP Ex 返回三态结果:Data / No Data / Error,用于区分“没数据”和“真出错”。Returns a tri-state result — Data / No Data / Error — so "empty" and "broken" stay distinguishable.
Send UDP 发送字符串。参数:Message、Target IP、Target Port、Data Format。Send a string. Params: Message, Target IP, Target Port, Data Format.
Get Local UDP Port 读取当前实际绑定的本地端口,端口填 0 时用它取回系统分配的端口。Read the actually bound local port — useful when you passed 0 and let the OS pick one.
Get Last UDP Error 返回最近一次 Socket 错误描述。Latest socket error text.
Is Listening 只读属性,表示接收端是否在监听。Read-only property: is the receiver listening.
接收是轮询模型。接收 Socket 非阻塞,Receive UDP 每次只尝试读一个数据报;有数据返回 true,没有立即返回 false。所以需要在 Event Tick 或 Set Timer by Event 中持续调用,并在一次 Tick 内循环调用直到返回 false,才能及时清空缓冲区。 Receiving is polled. The socket is non-blocking, so Receive UDP attempts exactly one datagram: true if it got data, false if not. Call it from Event Tick or Set Timer by Event, and loop within one tick until it returns false to drain the buffer.

数据格式Data formats

格式Format说明Notes
UTF-8默认,支持中文等多字节字符Default; handles multi-byte characters
ANSI系统本地编码,兼容老设备System locale encoding, for legacy devices
ASCII纯 7-bitStrict 7-bit
HEX十六进制字符串,输出形如 01 0A FF;输入按空格分隔的两位十六进制Hex text such as 01 0A FF; input as space-separated two-digit pairs

05TCP 客户端TCP client

TCPClient 是轻量非阻塞客户端:连接过程不卡主线程,DNS 异步解析,发送有队列缓冲,所有状态变化通过蓝图事件回调。适合与本地服务、控制软件或后端长连接通信。 TCPClient is a lightweight non-blocking client: connecting never stalls the game thread, DNS resolves asynchronously, sends are queued, and every state change arrives as a Blueprint event. Good for local services, control software or backend connections.

节点Node说明Description
Connect TCP 参数:Host、Port、Data Format、Framing、Connect Timeout(默认 5 秒)。Params: Host, Port, Data Format, Framing, Connect Timeout (5s default).
Disconnect TCP 主动断开连接并释放 Socket。Disconnect and release the socket.
Send TCP 发送字符串,可指定格式与是否自动追加换行(配合按行协议)。Send a string with an optional trailing newline for line-based protocols.
Is TCP Connected 当前是否处于已连接状态。Whether the connection is established.
Get Last TCP Error 返回最近一次错误描述,便于界面上直接显示。Latest error text, ready to show in UI.

事件Events

事件Event触发时机Fires when
On TCP Connected连接建立成功Connection established
On TCP Data Received收到数据(Raw 块或完整一行,取决于 Framing)Data arrives — a raw chunk or a full line, depending on Framing
On TCP Disconnected连接断开(主动或被对端关闭)Disconnected, either side
On TCP Error连接失败或运行期错误Connect failure or runtime error
TCP 是字节流,没有消息边界。按行分帧(Line)适合文本协议;二进制或定长协议请用 Raw 并自行处理粘包。 TCP is a byte stream with no message boundaries. Line framing suits text protocols; for binary or fixed-length protocols use Raw and handle packet coalescing yourself.

06WebSocket 长连接WebSocket

WebSocketClient 基于引擎自带的 WebSockets 模块,提供连接管理、UTF-8 文本收发与事件回调。适合与网页端、Node 服务或实时推送后端通信。 WebSocketClient builds on the engine's WebSockets module and adds connection management, UTF-8 text framing and event callbacks. Good for web front-ends, Node services or push backends.

节点Node说明Description
Connect WebSocket传入 ws:// 或 wss:// 地址建立连接。Connect to a ws:// or wss:// URL.
Disconnect WebSocket主动关闭连接。Close the connection.
Send WebSocket Text发送 UTF-8 文本帧。Send a UTF-8 text frame.
Is WebSocket Connected当前连接状态。Current connection state.
Get WebSocket URL读取正在使用的地址。The URL in use.
Get Last WebSocket Error最近一次错误描述。Latest error text.

事件Events

事件Event触发时机Fires when
On WebSocket Connected握手完成Handshake completes
On WebSocket Message收到文本消息A text message arrives
On WebSocket Closed连接关闭Connection closes
On WebSocket Error握手失败或传输错误Handshake or transport error

07HTTP 客户端HTTP client

异步蓝图节点,可在任意蓝图(Actor、Widget、关卡蓝图)中直接调用,无需放置 Actor。请求在后台线程完成,回调回到游戏线程。 Async Blueprint nodes callable from any blueprint — actors, widgets, level blueprints — with no actor required. Requests run off the game thread; callbacks return to it.

节点Node说明Description
Send HTTP Request 支持 GET / POST / PUT / DELETE / PATCH / HEAD,可自定义 Headers、请求体与超时。输出 OnSuccess(含状态码、响应体、响应头)与 OnFailed。Supports GET / POST / PUT / DELETE / PATCH / HEAD with custom headers, body and timeout. Outputs OnSuccess (status code, body, headers) and OnFailed.
Download File HTTP 异步下载到本地磁盘,自动创建父目录,支持绝对与相对路径。输出 OnProgress、OnSuccess、OnFailed。Download to disk asynchronously, creating parent folders, absolute or relative paths. Outputs OnProgress, OnSuccess, OnFailed.
HTTPS 需要引擎包含 SSL 支持(标准发行版默认包含)。若在企业内网使用自签证书,请先在系统中信任该证书,否则请求会失败。 HTTPS requires engine SSL support, included in standard builds. Self-signed certificates on an internal network must be trusted by the OS first, or requests will fail.

08JSON 工具JSON utilities

函数库 JsonTool。所有取值与写入都用点号路径,并支持数组下标:user.profile.name、items[0].title。 Library JsonTool. Every read and write uses a dot path with array indexes: user.profile.name, items[0].title.

节点Node说明Description
Is Valid JSON校验字符串是否为合法 JSON。Validate a JSON string.
Format JSON美化(带缩进)或压缩为单行。Pretty-print with indentation, or minify to one line.
Has JSON Field检查路径上的字段是否存在。Check whether a path exists.
Get JSON String / Int / Float / Bool按路径读对应类型的值;子对象或数组会自动序列化为紧凑 JSON 字符串。Read a typed value by path; nested objects or arrays serialize to compact JSON strings.
Get JSON Array读取数组元素;路径留空可读取根级数组。Read an array; leave the path empty to read the root array.
Set JSON String / Int / Float / Bool按路径写入或新增字段。输入为空时从 {} 构建,中间对象自动创建。Write or add a field by path. Empty input starts from {}; intermediate objects are created automatically.
Remove JSON Field删除路径上的字段。Remove the field at a path.
Make JSON From Map把 Map<String, String> 直接构建为 JSON 对象。Build a JSON object from a Map<String, String>.
// path examples — get / set
user.profile.name       → "Vino"
items[0].title          → "First entry"
settings.window.width   → 1920

09外部文件加载External files

函数库 FileTool。除 Load Texture From File 只接受绝对路径外,其余接口的路径均以 FPaths::ProjectDir() 为基准:编辑器下是 .uproject 所在目录,打包后通常是可执行文件所在目录。 Library FileTool. Except for Load Texture From File, which needs an absolute path, paths resolve against FPaths::ProjectDir() — the .uproject folder in editor, usually the executable folder after packaging.

节点Node说明Description
Read Text读取单个 TXT,支持相对与绝对路径;文件不存在返回空字符串。Read one TXT file, relative or absolute; returns an empty string if missing.
Write Text写入 UTF-8 文本,自动创建父目录,可覆盖或追加,返回是否成功。Write UTF-8 text, creating parent folders; overwrite or append, returns success.
Does File Exist检查文件是否存在。Check existence.
List Files In Folder按字母顺序递归或非递归列出匹配通配符(如 *.png)的文件。List files matching a wildcard such as *.png, alphabetically, recursive or not.
Load All External Texts递归读取文件夹内所有 *.txt,按路径排序返回字符串数组。Recursively read every *.txt as a path-sorted string array.
Load Texture From File从绝对路径加载图片为 Texture2D。Load an image into Texture2D from an absolute path.
Save Texture To PNG将 PF_B8G8R8A8 格式的 Texture2D 导出为 PNG,自动创建父目录。Export a PF_B8G8R8A8 Texture2D to PNG, creating parent folders.
Load Single External Image As Texture加载单张图片为 Texture2D,支持相对与绝对路径。Load one image as Texture2D, relative or absolute.
Load All External Images递归加载文件夹内所有 *.png / *.jpg / *.jpeg,按路径排序。Recursively load all *.png / *.jpg / *.jpeg, path-sorted.
Load All External Images And Texts按文件名(不含扩展名)配对图片与 TXT,按文件名排序,返回 FDataStructure 数组。Pair images with texts by filename (no extension), sorted by name, as an FDataStructure array.

FDataStructure

字段Field内容Content
Title文件名(不含扩展名)Filename without extension
Content同名 TXT 的文本内容Text from the matching TXT
Image同名图片的 Texture2DMatching image as Texture2D
批量接口返回的是数组,不保证按文件名排序(内部用 TSet 合并键值)。需要固定顺序时请在蓝图中自行排序。 Batch interfaces return arrays and do not guarantee filename ordering — internals merge keys through a TSet. Sort in Blueprint if you need stable order.

10窗口控制Window control

函数库 WindowTool,通过引擎主窗口(SWindow)实现,适用于窗口化运行:多屏拼接、异形屏、固定位置展示机。独占全屏模式下窗口不可移动。 Library WindowTool, operating on the engine's main SWindow. Suited to windowed setups: video walls, irregular screens, kiosk machines at fixed positions. Windows cannot be moved in exclusive fullscreen.

节点Node说明Description
Set Window Position设置窗口左上角坐标(Pos X、Pos Y)。Set the top-left corner (Pos X, Pos Y).
Set Window Size设置窗口宽高(Width、Height)。Set width and height.
Get Window Position返回窗口坐标 FVector2D。Current position as FVector2D.
Get Window Size返回窗口尺寸 FVector2D。Current size as FVector2D.
Set Window Title动态修改窗口标题。Change the window title at runtime.
Set Window Always On Top设置是否始终置顶(Win64)。Toggle always-on-top (Win64).
Minimize / Maximize / Restore Window最小化、最大化或还原。Minimize, maximize, restore.
Get Display Monitor Count已连接显示器数量。Number of connected monitors.
Get Display Monitors每个显示器的名称、原生分辨率、工作区坐标与尺寸、是否主屏。Per monitor: name, native resolution, work area rect, primary flag.
Move Window To Monitor把窗口移动到指定索引的显示器,可选自动铺满该屏工作区。Move the window to a monitor by index, optionally filling its work area.

11INI 配置与热更新INI config & hot reload

两个库分工:ConfigLibrary 直接读写单键;ConfigBlueprintLibrary 额外提供内存持久化、系统设置同步与文件监听热加载。 Two libraries: ConfigLibrary reads and writes single keys directly; ConfigBlueprintLibrary adds in-memory persistence, system setting sync and file-watch hot reload.

ConfigLibrary

节点Node说明Description
Read Config参数:File Name、Section、Key、Default Value;文件或键不存在时返回默认值。Params: File Name, Section, Key, Default Value; returns the default if missing.
Write Config / Write Config (Checked)写入字符串,自动创建父目录与文件;Checked 版返回写盘结果。Write a string, creating folders and file; the Checked variant returns the write result.
Read Config Int / Float / Bool按类型读取并支持默认值回退。Typed read with default fallback.
Write Config Int / Float / Bool按类型写入并返回是否成功。Typed write returning success.
Has Config Key / Remove Config Key检查键是否存在,或移除该键。Check for a key, or remove it.

ConfigBlueprintLibrary

节点Node说明Description
Load External Config加载外部 INI 到内存,相对路径依次查找 Saved/Config、项目目录、可执行文件目录。Load an external INI into memory; relative paths search Saved/Config, the project folder, then the executable folder.
Get Config Value (Bool / Int / Float / String)支持层级键,如 Video.ResolutionX、Window.AlwaysOnTop。Hierarchical keys such as Video.ResolutionX, Window.AlwaysOnTop.
Set Config Value (Bool / Int / Float / String)在内存中修改层级键并标记为脏数据。Change a key in memory and mark the config dirty.
Save External Config合并写回磁盘,保留原有注释与未改动的节。Merge back to disk, preserving comments and untouched sections.
Reload External Config从磁盘强制重读,并自动调用 Apply Video Settings 与 Apply Window Position。Force a re-read from disk, then automatically apply video settings and window position.
Apply Video Settings读取 [Video] 节(ResolutionX、ResolutionY、FullscreenMode、VSync、FrameRateLimit)应用到 UGameUserSettings。Reads [Video] (ResolutionX, ResolutionY, FullscreenMode, VSync, FrameRateLimit) into UGameUserSettings.
Apply Window Position读取 [Window] 节(MonitorIndex、MatchWorkAreaSize、PosX、PosY、Width、Height、Title、AlwaysOnTop、WindowState)应用到当前窗口。Reads [Window] (MonitorIndex, MatchWorkAreaSize, PosX, PosY, Width, Height, Title, AlwaysOnTop, WindowState) onto the live window.
Capture Current Settings To Config反向采集当前窗口坐标、尺寸与分辨率/全屏状态到内存配置,可选立即存盘。Capture the live window rect and resolution/fullscreen state into the config, optionally saving immediately.
Watch Config File / Stop Watching Config File监听 INI 时间戳变化(编辑器与打包后均可用),保存后自动热更新。Watch the INI timestamp (works in editor and packaged builds); saving triggers a hot reload.
Is Watching Config File / Is Config Dirty查询监听状态与是否存在未保存的改动。Query watch state and whether unsaved changes exist.
Get Loaded Config Path返回当前实际加载的 INI 完整路径,排查路径问题很有用。Full path of the currently loaded INI — the fastest way to debug path issues.
[Video]
ResolutionX=1920
ResolutionY=1080
FullscreenMode=Windowed
VSync=true
FrameRateLimit=60

[Window]
MonitorIndex=1
MatchWorkAreaSize=true
AlwaysOnTop=true
Title=Showroom A
路径规则:编辑器下优先 $(ProjectDir)/Saved/Config/ 与 $(ProjectDir);打包后查找 FPaths::LaunchDir() 及其 Config/ 子目录;同时支持任意绝对路径。 Path rules: in editor, $(ProjectDir)/Saved/Config/ then $(ProjectDir); packaged builds look in FPaths::LaunchDir() and its Config/ subfolder. Absolute paths always work.

12系统工具System tools

函数库 SystemTool,把常见桌面应用能力搬进蓝图,做展厅、工具机、内部软件时很省事。 Library SystemTool brings common desktop-app capabilities into Blueprint — handy for kiosks, tool machines and internal software.

节点Node说明Description
Copy Text To Clipboard / Paste Text From Clipboard读写系统剪贴板文本。Read and write clipboard text.
Launch External Process非阻塞启动外部程序,支持参数与隐藏窗口,返回进程 ID。Launch an external program non-blocking, with args and hidden window, returning a process ID.
Open URL In Browser / Open Folder In Explorer在默认浏览器打开链接,或在资源管理器打开文件夹。Open a URL in the default browser, or reveal a folder in Explorer.
Get Command Line Argument / Has Command Line Flag读取 -Key=Value 启动参数与 -Flag 开关,适合多机位启动配置。Read -Key=Value arguments and -Flag switches — ideal for per-machine startup config.
Get Environment Variable读取系统环境变量。Read a system environment variable.
Get Unix Timestamp (Seconds / Milliseconds)获取 UTC Unix 时间戳。UTC Unix timestamps.
Get Formatted Local Time按自定义格式输出本地时间。Local time in a custom format.
Get Machine Name本机主机名,可用于区分机器。Hostname, useful for identifying machines.
Get Project Or Launch Directory返回统一的运行时基准目录。The unified runtime base directory.
Base64 Encode / Base64 DecodeUTF-8 文本与 Base64 双向转换。UTF-8 text to and from Base64.

13路径与平台Paths & platforms

环境Context基准目录Base directory
编辑器Editor .uproject 所在目录(FPaths::ProjectDir())Folder containing the .uproject (FPaths::ProjectDir())
打包后Packaged 通常为可执行文件所在目录Usually the executable's folder
INI 写入INI writes 非编辑器环境使用 FPaths::LaunchDir()FPaths::LaunchDir() outside the editor
绝对路径Absolute paths 所有文件接口均支持Supported everywhere in the file API

平台方面,模块白名单只有 Win64。窗口控制依赖 Win32 API,UDP / TCP 使用引擎 Socket 子系统,因此其他平台既未声明支持,也未验证。若你需要把项目移植到 Linux 或 macOS,需要自行修改模块白名单与窗口层实现。 The module allow-list is Win64 only. Window control relies on Win32 APIs while UDP / TCP use the engine socket subsystem, so other platforms are neither declared nor tested. Porting to Linux or macOS means changing the allow-list and reimplementing the window layer yourself.

14许可与授权Licensing

项目Item说明Notes
授权条款License terms 以 FAB 商品页 为准,购买前请阅读页面上的授权说明Governed by the FAB product page; read its license section before purchase
源码Source code 不公开、不随商品分发。需要的源码授权或二次开发,请单独联系作者Not published and not part of the product. For source licensing or custom development, contact the author
商业项目Commercial projects 可用于商业项目,具体范围(含团队人数、产品数量)依 FAB 条款执行Usable in commercial projects; scope (team size, number of products) follows the FAB terms

15开发日志Development log

插件跟着实际项目持续迭代,因此这里不写版本号,改动统一按日期记录在独立的开发日志页。你从 FAB 拿到的始终是最新的一份。 The plugin evolves with real projects, so there are no version numbers here — every change is logged by date on a dedicated page. What you get from FAB is always the latest build.

查看开发日志Open the dev log

还有问题?看常见问题Still stuck? Check the FAQ