Struct disappeared

I was updating a different struct and now a struct I didn’t touch is unusable. All my variables that have it set as their data type won’t compile and when I open the struct file in engine, it says it’s missing… even though it’s right there and I’m looking at it and all its internal variables are staring me in the face.

I tried creating new variables with the struct as the data type and they won’t appear in the list of variables. in fact, the old variables with it set as their data type have disappeared from the list as well. They’re still in the blueprint event graph, just not in the list and I can’t make them any more. Please help :frowning:

After closing/opening the project a few times, the variables I tried to create appeared and I deleted them but now there are duplicate variables I can’t delete in each blueprint that had a variable of this struct. I checked and there are no references for these duplicates but i still can’t delete them and it’s giving me a compile error because of them.

Hello 0vr,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. Could you provide screen shots of any settings/blueprints that may be involved with this issue?

I tried to reproduce it in a clean project but couldn’t. But I’m pretty sure the problem was that I had a struct variable within another struct and there was an issue when I changed some variables within the inner struct. But I couldn’t reproduce it.

If you possibly have any ideas on how to get rid of these duplicate variables though, I’d really appreciate it.

https://i.imgur.com/hHECeN6.png

Could you try looking through your backup files that are automatically generated to see if you can find an older version of the blueprint from before the error occurred? If that does not work, could you try deleting your saved and intermediate files (note you may want to create back ups of any folders before deleting them)?

Default backup location:

C:\Users\YourUserName\Documents\Unreal Projects\YourProjectName\Saved\Backup

I worked around it using caffeine-logic.

If anyone else has this happen to them: you can’t rename or delete the duplicates, but you can rename the original, so rename it.

Then you’ll see a 3rd duplicate appear from nowhere. It’s magic, get used to it.

This new duplicate will be named exactly like the variable was originally. Don’t be fooled. You renamed the original and it’s still in the list, as you can see. So delete this imposter, and you can also go ahead and delete the other duplicate now, too.

Rename your original var to reinstate its former glory. The crowd cheers. The end.

If anyone else has this happen to them: you can’t rename or delete the duplicates, but you can rename the original, so rename it.

Then you’ll see a 2nd duplicate appear from nowhere. It’s magic, get used to it.

This new duplicate will be named exactly like the variable was originally. Don’t be fooled. You renamed the original and it’s still in the list, as you can see. So delete this imposter, and you can also go ahead and delete the other duplicate now, too.

Rename your original var to reinstate its former glory. The crowd cheers. The end.