UAssetValidator

A guide on how to use the AssetValidator.

Configuration and Usage

Follow the steps below

    • Add allow validation usecase in project setting
    • All usecese:
      /** No usecase specified */
      None = 0,
      /** Triggered on user's demand */
      Manual,
      /** A commandlet invoked the validation */
      Commandlet,
      /** Saving a package triggered the validation */
      Save,
      /** Submit dialog triggered the validation */
      PreSubmit,
      /** Triggered by blueprint or c++ */
      Script,
      
    • None Means all case, it always trigger validation
    • Allow validation usecase empty, same as None
    • Manual needs enable validate on save in Editor preferences
      Editor settings
    • Create a data asset and select Asset Validation Relus
    • Select the Asset Class which you want to validation
    • Check Configure Rules to define rules Create rule Configure rules
    • Once the rule asset is saved, it takes effect
    • Find a asset to check your rule is correct or not
    • You may need to test several times to ensure the rule is correct Validation results

      Configure Rules

      Base rule

  • Asset Class decides which assets the rules apply to
  • Name Format Format of the asset name, whether it needs prefixes, suffixes, and contains special text
  • Criteria Entries Define the properties and values that need to be validated(Click the plus sign to add)
    • Attribute Name Right click property, Copy Intername Name(Highly recommended, but UE versions below 5.5 may not have it) or Copy Display Name Copy Attribute Name
    • Values A property can have multiple values, and you can add multiple entries. As long as one value matches, the validation will pass
      • Value A specific value used to compare with the asset’s properties
      • Warning If selected, the validation will pass even if the above values are different, and it will output the following error message
      • Error Message Error message for failed validation, optional

        Advance

  • Group Pattern Regular expression for extracting group names from asset’s name The regular expression needs to include parentheses () to define a capturing group. The capturing group will extract the content matched within the parentheses.
    Ps. Capture Group
  • Group Value With the group name, you can define the attribute values for the group. The format is the same as Value, but with a higher priority Group Value

© 2020. All rights reserved.

Powered by Hydejack v8.4.0