Force checkout / dirty an asset from C++?

I have some PostLoad override function where I’m doing one time data updates after we’ve reworked some data structures [where I’m copying some old data + adapting to new], however I would like it that when this operation is done it checks out the file or at least dirties is in editor so when a person saves / or closes the editor it will ask them to check all this files out.

Is this doable somehow?

Hello! You can call UObject method

virtual bool Modify( bool bAlwaysMarkDirty=true ) override;

This should notify Editor that asset has been changed

Didn’t work in this particular case as this is happening during PostLoad (while Editor loads up), so for some reason, this way of ‘dirtying’ asset isn’t picked up by the Save.

In this case you can just add some static Notification Queue, push notify in it if you need and throw notifies from Queue after Editor is loaded.