Skip to content

๐Ÿ”ท 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

  1. Open your Unreal Engine project.
  2. Navigate to the Content/CustomBlueprint folder.
  3. 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:

  1. Open SampleBlueprintMod.
  2. Find the Event BeginPlay node.
  3. If you have no events yet, drag off from the exec pin of Event BeginPlay.
  4. If you already have an event, drag off from its output pin.
  5. Search for the event you want to add and create it.
  6. 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:

  1. Click the "Compile" button (top-left of the blueprint editor) to save changes.
  2. Ensure the blueprint is named correctly:
  3. Your blueprint name must match your mod's .pak, .ucas, and .utoc file names.
  4. Example: If your mod files are named:
    MyCustomBlueprint.pak
    MyCustomBlueprint.ucas
    MyCustomBlueprint.utoc
    
    Then your blueprint inside 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.