Setup local asset validation
The setup is recommended to be done by one person in your team and version controlled to avoid unnecessary duplication of work.
Linting
Enable the โLinterโ plugin by adding the following to your
.uproject
file.{ "Name": "Linter", "Enabled": true, }
Version control this so all devs can use it without doing this step
Run a first-pass validation
Right-click your plugin folder and select โScan with Linterโ
Select the WorldBuilder Preflight RuleSet and click โNextโ
Once you have your first validation result and opened, there will likely be many errors under โ2.11 Asset references across pluginsโ. To fix this, in your World Builder
.uplugin
that stores your content and that youโll upload, you need to add the content dependencies that you use.Using your validation result, collate a list of plugins you need to add dependencies for. In the below example, Iโll add
M2Core, M2Content, JunoSkypark
(e.g. if the error says โThis asset references "/M2Core/โฆโ` then you need theM2Core
dependency)Navigate to the
.uplugin
file, open it in your favourite text editor which should look like thisAdd the following section, and add each plugin dependency you need.
The
.uplugin
file should now look like this. Make sure to also version control this modified file.Re-run the linter, which should now be free of those errors and will be left with relevant validation issues.
(optional) Copy the
M2upPreflightRuleSet
you just used and make a local version so you can control your own validation settings. To use this asset, set it as theDefault Lint Rule Set
in the Project Settings, and ensure you check in/Config/DefaultLinter.ini
where this is saved.
Cooking
You can run a normal World Builder package to test your content cooks correctly, while also avoiding uploading the content which can take a long time and is unnecessary for pure validation.
Navigate to your World Builder settings and enable โShow Package Only Commandโ
You can version control this change by using โSet as Defaultโ in the top-right of the Editor Preferences, which will update DefaultPerProjectUserSettings.ini
in your project config folder.
Last updated