uVersion
English
Download →

Wiki

Validation rules

Asset validation checks run at check-in: the 9 built-in rules, the error / warning / info severities, JSON config, export / import / reset.

Introduction

Validation rules are Unreal asset checks run at check-in time: naming, texture size, missing dependencies, and so on. They enforce studio conventions automatically, before content enters the repository. They are configured per repository.

Access and roles

The Rules tab is available to the super admin and to the project_admin on the repositories they administer.

Automatic seeding The first time you open the rules of a repository that does not have any yet, the 9 default rules are created automatically. You therefore always start from a complete set, ready to adjust.

Severities

SeverityEffect at check-in
errorBlocks the check-in until the problem is fixed.
warningWarns but lets it through.
infoPurely informational.

The 9 built-in rules

The list of built-in rules, each with its enable toggle and its error/warning/info severity menu.
RuleDefaultWhat it checks
blueprint_compilationerrorBlueprints compile without errors before check-in.
naming_conventionwarningNaming prefixes (Allar UE5 style): T_ textures, M_ materials, BP_ blueprints, SM_ static meshes, WBP_ widgets, and so on.
max_texture_sizewarningMaximum texture size: 4096 × 4096 by default, power of 2 required.
material_complexitywarningMaterial complexity: by default max 256 instructions, 16 texture samples.
import_settingswarningCompliant import settings (textures, meshes).
missing_dependencyerrorNo missing dependency (ignores engine content by default).
circular_dependencyerrorNo circular dependency (search depth 20 by default).
unreferenced_assetinfoFlags unreferenced assets (excludes maps and widgets by default).
duplicate_assetwarningDetects duplicate assets (ignores .umap by default).

Enable and configure

A rule expanded on its JSON config editor with the Save Config button.

For each rule:

  • Toggle: enables / disables the rule. Saved immediately.
  • Severity: error / warning / info dropdown. Saved immediately.
  • Configuration (JSON): expand the rule (chevron) to edit its parameters in JSON, then Save Config. Invalid JSON blocks the save with the error detail.

Example: lower max_texture_size to 2048 for a mobile project, or switch naming_convention to error to enforce it strictly.

Export, import, reset

  • Export: downloads a rules.json file containing the state of every rule (enablement, severity, config).
  • Import: reloads a rules.json and applies each entry to the corresponding rules (unknown keys are ignored).
  • Reset to Defaults: resets all rules to their default values. Custom configurations are lost (confirmation required).

Export / import is used to replicate a validation policy from one repository to another, or to version it offline.

rules.json in the repository

A committed rules.json is not applied by just anyone A committed .uversion/rules.json file is applied to the repository policy only if the author of the commit holds the manage_rules capability. Otherwise the file is stored but the rules do not change. This is a safeguard: a contributor with write access on that path cannot disable validation by committing a file.

Common pitfalls

A check-in is blocked

A rule set to error failed. The message tells you which one. Fix the asset, or (if the rule is too strict for your context) lower its severity to warning.

Reset wipes my settings

Reset to Defaults is destructive for your custom configurations. Do an Export first if you want to be able to roll back.

A rule seems to do nothing

Check that it is enabled (toggle) and that its severity is not info if you were expecting a block. Only error blocks the check-in.