๐ท Using UBL in Your Mod
This guide explains how to integrate the UBL framework into your MK1 mods.
๐ฅ 1. Download the UBLSampleProject
To begin integrating UBL into your mod, download the UBLSampleProject from GitHub.
This project contains pre-made UBL events, making it easy to get started.
๐น Tip: Adding UBL to an Existing Project
If you're adding UBL to an existing Unreal Engine project, simply copy the following folder into your project's Content
directory:
Content/CustomBlueprint
This folder contains a sample mod actor blueprint that already supports UBL events.
๐ฎ 2. Open the UBL Sample Blueprint
- Open your Unreal Engine project.
- Navigate to the
Content/CustomBlueprint
folder. - Locate the SampleBlueprintMod actor blueprintโthis is where all UBL logic happens.
๐ This blueprint will handle all UBL events used in your mod.
๐ ๏ธ 3. Understanding the Sample Blueprint
The sample blueprint contains an example usage of the ChangeFace event.
๐ For a full list of UBL events and how to use them, check the Events Overview section.
๐ฏ 4. Adding UBL Events to Your Mod
To add a new UBL event in your mod:
- Open
SampleBlueprintMod
. - Find the
Event BeginPlay
node. - If you have no events yet, drag off from the
exec
pin ofEvent BeginPlay
. - If you already have an event, drag off from its output pin.
- Search for the event you want to add and create it.
- Connect it to your event chain.
๐ UBL events should be called in a sequence, forming an event chain.
๐พ 5. Saving & Compiling the Blueprint
Once you're done adding UBL events:
- Click the "Compile" button (top-left of the blueprint editor) to save changes.
- Ensure the blueprint is named correctly:
- Your blueprint name must match your mod's
.pak
,.ucas
, and.utoc
file names. - Example: If your mod files are named:
Then your blueprint inside
MyCustomBlueprint.pak MyCustomBlueprint.ucas MyCustomBlueprint.utoc
CustomBlueprint/
must also be named:MyCustomBlueprint
๐จ If the names do not match, UBL will fail to load your mod!
โ Next Steps
- Test your mod in-game to ensure UBL events function properly.
- Refer to the Events Overview and the events sidebar for additional UBL events.