Home

Awesome

UE4 Texture Validator Plugin

A plugin that validates settings for texture assets in Unreal Engine 4.

What can it do?

Usage

Once installed, open Project Settings > BUI Validator.

Here you can set up validator groups, that consist of match conditions and rules to be applied to those matches.

Settings example

Settings

Match Conditions

For a rule to be triggered, all conditions of the match must pass.

Validator Rules

Each rule allows multiple values for a given setting. For example a texture could be allowed to be within World or UI. To pass, the asset must match any of the values.

Auto-apply settings to new textures

Validator Groups have an Apply On Import option. When checked, any newly-imported assets that match the group will have some rules automatically applied to them.

Prefix, Texture Size and Path rules are not applied on import.

C++ UPROPERTY() Settings

The plugin also supports making UPROPERTY properties required.

// If this is not set, the BP will show an error on save
UPROPERTY( EditAnywhere, meta = ( BUIRequired = "true" ) )
TSubclassOf<AActor> RequiredActor;

BUIRequired flow example

Running Validation

Whenever UTexture2D asset is saved, the rules in Project Settings are applied. If the asset does not pass, an error is shown.

Failure example

Command-line Validation

This is useful when validating assets as part of a build process.

"C:\Program Files\Epic Games\UE_5.0EA\Engine\Binaries\Win64\UnrealEditor-Win64-DebugGame-Cmd.exe" -run=BUIValidateAll

Installation

  1. Download the zip or clone the Github repository into YourProject/Plugins/BUIValidator/
  2. Add the following to the end of your .uproject file, inside the { }
	"Plugins": [
		{
			"Name": "BUIValidator",
			"Enabled": true
		}
	]

License

CC0

Contact

If you find it useful, drop me a line @_benui on Twitter.

benui.ca

Future Work