A method for Automatically validating Actors or Assets

Usable only via C++.

  • There are several overloads of IsDataValid - you should only use EDataValidationResult IsDataValid(FDataValidationContext& Context) const
    • The non-const and FText overloads do not run in all cases. Only the const with Context runs when you press Save on an asset, which is one of the most useful usecases for this function
  • This seems largely intended for Data Assets or such.
    • This function runs on the CDO, so things like components created in a blueprint subclass are not available for validating anything useful on Actors

Consider using Editor Validators instead if you want to validate actors.