Asset Validation on pre save?

Hi there!

I was wondering if there is any non hacky way to implement data validation BEFORE save. I know the Data validation plugin can run validations on every save, thats cool, but still saves the asset, and then gives an error.

I dont find any obvious way to “prevent the save”, what would be the right approach?

The only way seems OK is the PreSave delegates, but that is only for UObject, that means, if I save an asset, might be that it runs 5 times or so. Only to check the name of 1 file, seems weird.

Also, if I implement the logic in blueprint Im having a hard time cleaning it up, after I delete an asset. Delegates…

Any idea? Thanks in advance!