UnrealModFramework
Mod framework API
Loading...
Searching...
No Matches
UnrealModFramework

English | 简体中文

UnrealModFramework API

The published reference is generated from the public headers on main. Use the released game SDK for game-specific declarations. Published API

To read the reference for a particular revision, check out that revision, put Doxygen 1.18.0 on PATH, then run python Scripts/run_doxygen.py from the repository root. Open .tools/api-docs/html/index.html. API development and publishing

Blueprint behavior SDK

Each exported type header in GameExport/Public defines its reflected UModBehavior descendant. <GameSDK>ModBehaviors.h includes all generated behavior headers. Each published Hook_Pre*, Hook_On*, Hook_Post* and Event_* callback has a zero-argument Blueprint native event ExecuteX() and a C++ virtual X(). The default implementation forwards to X(). Call published APIs as members of the behavior. Blueprint member nodes report the outcome and error code. C++ members accept optional error output. An authorized alias, provider, service, or API result supplies a typed behavior reference. BindEvent_*() and UnbindEvent() use the World dispatcher. Call Next Mod Hook once during an authorized On override. It returns zero on success or the host continuation error. Use the regular Blueprint extension library for explicit payload and operation selection. Mod author guide

Native SDK

The SDK uses UObject.h and ModInstance.h for its native type and lifecycle interfaces. ModReflection.h describes the Mod's own fields and callable methods. ModArchive.h exposes the save and restore functions. The generated game behavior headers and GameNativeSDK.h contain the published game operations and Event adapters.

Native extension V2 uses UMF_ExtensionHostV2, UMF_ExtensionCallV2 and UMF_ExtensionSessionV2 in ModExtensionABI.h. The API slot tables and their ABI fingerprint are generated independently. Game developers may call UModExtensionSubsystem::ReflectNativeMod with the Mod ID and a V2 request and reply. Requests address session-local objects. Replies contain bounded caller-owned buffers.

Reflection records use little-endian integers and length-prefixed UTF-8 strings. For a list request, the reply contains a uint32 count followed by uint64 object IDs and type names. Type descriptions contain the type and base names, then counted property and function descriptors. Each property descriptor contains its name, flags and value tag. Each function descriptor contains its name, counted argument tags and result tag. Property reads return a tagged value. Property writes read one tagged value. Function invocation reads a uint32 argument count followed by tagged values and returns one tagged result. The value tag order is void, bool, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, UTF-8 string, strong Mod object ID and weak Mod object ID. Save and restore use the same versioned field archive as Serialize and Deserialize.

Game object operations use the configured World aliases and existing generated API tables. SDK type descriptors for game objects describe the public behavior type. Game properties and unexported functions have no SDK reflection entries. Mod author guide