How to avoid hardcode? (UPrimaryDataAsset)

Hi @MagForceSeven

I finally found the problem. It was the metadata of the files. I deleted them all and created them again. Now everything seems to be working correctly. The most hidden problem I’ve ever had. I almost went crazy with this. There should be an option to update metadata in the editor (something like fix redirectors). Deleting files to fix this problem is bad business.

Thank you very much for your help @MagForceSeven :heart:

If it’s a metadata problem, you can most frequently solve this by just resaving the asset that is a problem. No need to delete anything.

Metadata is stored in the file itself, so if you do things like add a primary asset ID to types that didn’t have one when they were made or add AssetBundle markup to existing properties with values set, you can just resave the file and the metadata will be updated.

1 Like

Good to know that.
Thank you very much for this tip @MagForceSeven :heart: