Breakdown 1 of 4

Escape Asset Helper

I built and released a C++ plugin that enforces naming conventions and asset validation, which was used by another team.

Overview

Escape Asset Helper is a C++ plugin for Unreal Engine 5.6. It checks asset names on import, validates assets against rules you set up, and shows each asset’s status on its Content Browser thumbnail. I built it for Project UMBRAE and released it on GitHub, and it got the interest of another team, Stylised Beat-em-up, that ended up using it too.

The summer before, I reached the final round for an internship at Rebellion. The feedback was that I’d done well but needed a stronger showcase of tools in my portfolio, so that year I set out to fix it. Tool Brick covered pipeline work but not C++, which this tool needed. I also planned it to be a proper public release from the start. I began with a renamer that would run on Unreal’s on-import event, but that event isn’t exposed to Python or Blueprint, and C++ isn’t supported in a Blueprint project like Project UMBRAE, so a plugin was the only way to get at it.

An asset passes through each part of the plugin in turn, from import to submit. Here’s the top level:

flowchart LR
  I([Import]) --> N[Name<br/>dialogue]
  N --> R{Queries<br/>met?}
  R -- yes --> A[Actions]
  R -- no --> K[No change]
  K --> O
  A --> O[Status<br/>overlay]
  O --> P{Submit<br/>check}
  P -- passes --> D([Depot])
  P -- fails --> W[Warn or<br/>block]

Download

The plugin is on GitHub with precompiled binaries, so it installs without compiling, and a documentation wiki.

Escape Asset Helper's entry in the Unreal plugin browser, with an orange box icon, a New tag, Version 1.3, James Marland as the author and the description: Comprehensive asset management tool with naming convention checks, extendable validator rules, and visual status overlay
The plugin in Unreal's plugin browser.

Choosing an approach

I looked at Unreal’s own Data Validation system (Epic Games, n.d.a) first, but it didn’t fit what I wanted. It runs when an asset is saved, from the menu or on a build server, never on import, so a bad asset is already in the project before anything catches it. Its validators also only pass or fail an asset and log a message, where I wanted rules that could fix the asset too, like turning on Nanite or setting texture compression. In a Blueprint-only project the validators would have to be Blueprints, which can only reach what Epic exposes from C++, and plenty of asset settings aren’t (Steve Streeting, 2024).

Ryan DowlingSoka’s post-asset import rules (DowlingSoka, 2023a) were much closer, and come as proof-of-concept versions in both Python and C++. Epic hasn’t exposed all the classes and delegates I needed to Python, so the plugin grew out of the C++ version (DowlingSoka, 2023b) and follows the standard plugin module pattern (Epic Games, n.d.c).

It had been a while since I’d written C++, and header files and explicit types took some getting used to again. I built the validator over the Christmas holiday and the naming side during reading week, then added the status overlay and the source control check once production started, and released 1.0 in Week 6.

Asset naming

Names follow the Prefix_BaseAssetName_Variant_Suffix pattern, so a diffuse texture imported from cardboard box.png becomes T_CardboardBox_D: T for texture, the name in PascalCase, and D for diffuse. The defaults follow Allar’s UE5 style guide (Allar, 2022), which most Unreal developers will already know. Following industry standards was also part of how Project UMBRAE was marked, so consistent naming counted towards our grade as well as keeping the project tidy. Conventions are inherited, so a rule for UTexture also covers UTexture2D unless there’s a more specific one, and common suffixes are normalised, so Albedo, BaseColor and Diffuse all become D.

I kept the naming side non-invasive, so nothing gets renamed until you confirm it. The import dialogue fills in what it can work out from the file, checks each part as you type and previews the final name, listing anything missing or invalid before the rename happens.

Splitting a variant out of the base name on import.
The Name Your Asset dialogue for an imported Texture2D, with Prefix T, Base Name CardboardBox and Variant Big filled in, an empty Suffix field, a yellow preview reading T_CardboardBox_Big and a note that a suffix is required, listing the valid suffixes
The dialogue flagging a missing suffix.

Assets already in the project get the same checks from the context menu, where you can validate, ignore or auto-fix a whole batch at once. Hooking these actions onto the editor’s event delegates took me a couple of tries to figure out.

The Escape Asset Helper section of the Content Browser context menu, with Validate Asset, Ignore Validation and Auto-Fix Names, next to two toast notifications saying an asset has pending validation rules, each with Apply Fixes and Dismiss buttons
Pending rules show up as toasts you can apply or dismiss.

Asset validator

The validator is built from rules, queries and actions:

  • Rules - Each rule applies to assets of one Unreal class. It checks its queries, requiring either all of them or just one to pass, then runs all of its actions on the asset.
  • Queries - Conditions an asset either meets or doesn’t.
  • Actions - Any behaviour that can be run on the asset.

Queries and actions can be written in Blueprint or C++, and adding a check only means making a new asset. Most people never touch the defaults, so I wanted them to be sensible out of the box: textures get the compression and sRGB settings their suffix implies, and static meshes get Nanite turned on and a warning above 30,000 polygons.

The plugin's content folder in the Content Browser: seven action and query blueprints such as AVA_TurnOnNanite and AVQ_MaxPolygons, and thirteen rule data assets such as AVR_DiffuseCompression and AVR_NormalSRGB, every one marked with a green tick
The default rules.

Before the public release, I fixed a false compile error in custom queries and actions. They’re Blueprints based on the plugin’s own classes, and Unreal’s Get Editor Subsystem node checks when it compiles that it’s inside an Editor Utility Blueprint. It looked fine in the editor, but pressing Play recompiled the Blueprint, the check failed and it reported a compile error even though it still ran. I wrote a wrapper node in C++, Get Editor Subsystem by Class, which is a plain function call that skips the check, so the error went away and one node covers every subsystem instead of a separate getter for each.

A Blueprint graph for a custom query: a Get Editor Subsystem by Class node fetching the Static Mesh Editor Subsystem, which feeds a Get Number Verts node once the asset has been cast to a static mesh
Get Editor Subsystem by Class in a custom query.

Asset status overlay

The overlay shows each asset’s status on its thumbnail, so you can see what needs fixing without opening anything. It’s inspired by IANistor’s Asset Status Overlay (Nistor, 2025), and without that as a reference I wouldn’t have worked out how to extend the Content Browser’s UI at all. The browser doesn’t support icons there, so the states are text symbols: valid, invalid, ignored, and an orange one for classes that have no convention yet.

Four Content Browser tiles: M_MasterTest with a green tick, T_CardboardBox with a red cross, T_Drip_D with a grey dash, and a level called Z_Test with an orange tilde
Valid, invalid, ignored and no convention.

Keeping the symbols up to date took more work, because Unreal caches assets in the Content Browser. After a rename the status has to be re-cached, which isn’t the same as marking the asset as modified and saving it again, and once I had that working the overlay updated in real time.

Source control

The source control check registers a pre-submit validation delegate, so it runs whenever someone submits a changelist from the editor. By default it only warns, but you can set it to block the submit completely and stop mistakes reaching the depot. Querying each asset’s state through the Source Control Module took a lot of digging through the API docs (Epic Games, n.d.b), and renamed assets had to be added to changelists and checked out manually.

The pre-submit check (C++, 52 lines)
void UAssetNamingSubsystem::OnPreSubmitDataValidation(FSourceControlChangelistPtr Changelist, EDataValidationResult& OutResult, TArray<FText>& OutErrors, TArray<FText>& OutWarnings)
{
    // Early out if disabled
    const UAssetHandlingSettings* Settings = GetSettings();
    if (!Settings || Settings->SourceControlMode == ESourceControlValidationMode::Disabled)
    {
        OutResult = EDataValidationResult::Valid;
        return;
    }

    // Gather pending files
    TArray<FString> FilesToValidate;

    ISourceControlProvider& Provider = ISourceControlModule::Get().GetProvider();

    // Only validate the changelist being submitted
    TArray<FSourceControlStateRef> FileStates;
    FSourceControlChangelistStatePtr ChangelistState = Changelist.IsValid()
        ? Provider.GetState(Changelist.ToSharedRef(), EStateCacheUsage::Use)
        : nullptr;

    if (ChangelistState.IsValid())
    {
        FileStates = ChangelistState->GetFilesStates();
    }
    else
    {
        // Providers without changelists fall back to every pending file
        FileStates = Provider.GetCachedStateByPredicate(
            [](const FSourceControlStateRef& State)
            {
                return State->IsCheckedOut() || State->IsAdded() || State->IsDeleted() || State->CanCheckIn();
            }
        );
    }

    for (const FSourceControlStateRef& State : FileStates)
    {
        FilesToValidate.Add(State->GetFilename());
    }

    bool bAllValid = ValidateFilesForSourceControl(FilesToValidate, OutErrors, OutWarnings);

    if (!bAllValid)
    {
        OutResult = EDataValidationResult::Invalid;
    }
    else
    {
        OutResult = EDataValidationResult::Valid;
    }
}
Unreal's Confirm changelist submit dialogue for a single asset, TestMaterial, showing the warning: Asset 'TestMaterial' violates naming convention: Missing prefix. Expected 'M_'. Suggested: 'M_TestMaterial'
The warning for a material missing its prefix.

Settings

Everything is set from one project settings page, split into asset handling, asset naming and the validator. The plugin passes its recommended defaults to the project automatically, so a team doesn’t have to fill anything in to get started.

Escape Asset Helper’s parameters

Asset handling

Ignore system
Validation
Source control
Overlay
Documentation

Asset naming

Conventions
Import

Asset validator

Validator
  • bool
  • vector
  • int
  • string
Escape Asset Helper's defaults.

Each entry in the naming conventions map is a struct keyed by asset class. The Texture2D one is the busiest, because textures are the only class where the suffix is required and has aliases to resolve.

Texture2D

Naming
  • bool
  • array
  • object
  • string
The Texture2D naming convention.

A rule is a data asset holding queries and actions, and all of its logic is in one function. With Require All Queries on, every query has to pass. Otherwise any one passing is enough, and both modes stop checking as soon as the result is known. A rule with no queries always runs its actions.

AVR_DiffuseCompression is one of the default rules. It finds diffuse textures by their suffix and sets their compression back to the default if anything else has been chosen.

AVR_DiffuseCompression

Queries
Actions
  • bool
  • enum
  • string
AVR_DiffuseCompression.
The rule logic that runs its queries and actions (C++, 51 lines)
bool UAssetValidatorRule::Apply_Implementation(UAssetValidatorSubsystem* Subsystem, UObject* Asset)
{
    // AND mode starts true and every query must pass
    // OR mode starts false, or true with no queries, and any query passing is enough
    bool bPassesTests = bRequiresAll || (Queries.Num() == 0);

    for (const TObjectPtr<UAssetValidatorQueryBase>& Query : Queries)
    {
        if (!Query)
        {
            continue;
        }

        if (bRequiresAll)
        {
            bPassesTests = bPassesTests && Query->Test(Subsystem, Asset);
            if (!bPassesTests)
            {
                // One failure is enough in AND mode
                break;
            }
        }
        else
        {
            bPassesTests = bPassesTests || Query->Test(Subsystem, Asset);
            if (bPassesTests)
            {
                // One pass is enough in OR mode
                break;
            }
        }
    }

    if (!bPassesTests)
    {
        return false;
    }

    bool bAllActionsSucceeded = true;
    for (const TObjectPtr<UAssetValidatorActionBase>& Action : Actions)
    {
        if (!Action)
        {
            continue;
        }

        bAllActionsSucceeded = bAllActionsSucceeded && Action->Apply(Subsystem, Asset);
    }

    return bAllActionsSucceeded;
}

Release and adoption

When I announced the release on Teams, the Stylised Beat-em-up team was interested, and Denzel in particular wanted to use it. The team adopted it and kept it in their project for the rest of development, using it to enforce their naming conventions on every import and submit, and setting up their own prefixes, suffixes and rules in the config to match how they worked. I kept supporting the plugin after the 1.0 release, shipping updates and fixes as both teams used it, so it stayed part of their pipeline until the end of the project.

The public EscapeAssetHelper GitHub repository, with folders for Binaries/Win64, Config, Content, Resources and Source, files including DOCUMENTATION.md, the uplugin, LICENSE and README.md, 13 commits, 5 tags, an MIT license, topic tags such as unreal-engine-plugin and asset-validation, and Release v1.3.1 marked Latest out of 4 releases
The GitHub repository.

What I’d add next

Next on my list was a smart quick add, a context menu action that takes the prefix and suffix from an asset that’s already named correctly and adds them to the config. Teams could then grow their conventions from assets already in the project, without opening the settings.

Sources