Asset keeps getting dirty without any change, how do I fix this?

Here is a video of what I mean:
https://streamable.com/819q4k

Here is a gif:

Hey @MrGoatsy!

I don’t really know if it’s something that is “fixable.”

As far as your .gif goes, what is making it dirty is changing which window is open in the Blueprint. It’s functionally the same as moving a node up by 1px, it’s now different. When you save a blueprint it keeps up with all open windows, and which window is in front, etc. so when you reopen it you see the exact same layout as when you left off. I wasn’t able to find anything on how to stop this from happening, but when I’m using Version Control and open something just to look at it, I’ll revert it instead of saving the changes.

Hope this helps, maybe someone else will have more insight!

Only that assets becomes dirty, any other assets where I switch tabs stay saved.

It may be referencing files that have been changed but not yet saved and are dirty themselves? Have you tried using file->Save All and then trying this again?

I only ask this because I HAVE seen this happen a few times before, and it is not problematic, only annoying, and I have seen it be fixed this way and I have seen this not fix it.

Give that a try and see what happens! Also try closing the editor and saving anything that pops up then going STRAIGHT to that asset (DO NOT OPEN ANY OTHER WINDOWS FIRST) and seeing if it still happens.

I reinstalled the whole engine already.

Hey, that’s great, so it should minimize the chances that it’s being caused by the engine. That being said, it’s likely something unique to your project, not the engine. In fact, something specific to your player character and the references it uses.

Speaking of that, have you tried making sure all of your redirectors are up to date? Using “Fix up Redirectors”?

I already updated the redirectors.

The weird thing is, it is happening to older versions of the project as well that previously did not have that issue AFAIK.

Did anyone ever figure this out?

For awhile, I’ve had 1 specific state tree that would always flag as dirty when I load the project. And now recently I have a specific blueprint that does this.

The only thing I’ve done recently with this blueprint is some work revolving around an interface. I’m not sure if there’s anything specific that causes this. It doesn’t appear to do any harm, but it’s annoying and makes you think something is wrong.

It happens when you click a tab, and obviously upon restarting the project.

I’ve tried:

  • Refresh all nodes
  • Save all
  • Closing all tabs in the blueprint and reopening the asset
  • Temporarily unattaching all construction script functions and recompiling
  • Temporarily unattaching various functions and recompiling

I’d hate to have to run trial-and-error deleting nodes (or interfaces) just to see what “happens”, and have to deal with restoring it.

Hover the compile button (three dots), Select always save on compile.
Then compile.

If that doesn’t fix your issue, close your project.
Go to your project directory. Delete the Intermediate folder.
Launch the project.

This will cleanup any issues in the intermediate folder by rebuilding it.