Structure Variables get corrupted
This can randomly happen on compile, the variable using the structure will vanish in the Variables list, in the graph it will show up as greyed out/ not found. The error will say the variable has an invalid type. The most annoying thing about it that all links in blueprint to any structure inside that structure will be deleted, like where Break, Make and Set Members is used. UE4 will find the variable again when the Structure asset gets changed and saved again but the links are obviously not reappearing.
I had this happen occasionally in 4.13 and I hoped it would be fixed in 4.15 but there it happened again after ca 10 minutes working with it.
I had this happen mostly with one specific structure asset, I then had it happen with another structure at some point after I added a structure array into that structure. (Recreating this to instantly have the bug occur did not work though) Since both structure assets with which it happens have a structure array inside the bug is likely connected to that. I''m using both as a structure array with a structure array inside. The bug can happen without having changed anything in the structure asset, I could not find anything that triggers it other then that it happens sometime on compile.
This is a known issue, which you can view here:
You can track the report's status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.
answered Apr 05 '17 at 01:44 PM
Thomas G ♦♦ STAFF
Happening to me, found this page googling "structure no longer showing up as variable type." This is the second time this week we've had a structure completely break our project file..
answered Feb 11 '18 at 04:08 AM
Branching, complex structs (structs within structs) can create some problems, but I think we kind of found a way to replace them when they get damaged without much trouble (Blueprints). Most of you probably figured it out as well by now, but in case you haven't...
Symptom: the project no longer finds the structs as variables, and where they are already present, they no longer "break".
Cause: Changes in related structs, renaming, or unknown;
Before doing this, make an archive of the project.
A 0. duplicate the damaged struct (not necessary to make a new one, the duplicate will be fine); 1. try replacing references automatically while deleting the damaged struct; 2. if it works, fix up redirectors, rename the duplicate, etc;
B 0. if not: 1. force delete the damaged structs (you may need to close/open the project); this may throw some errors, ignore them 2. rename so that the duplicate ends up with the original name; with a little luck, the previous, apparently failed "replace reference" will do the trick, the system will recognize the duplicate/identical name struct as the original. 3. replace the struct variable type in your data source at the most root level - first time it is used as "struct within struct", and not just a collection of variables and enums;
C 0. if the project is still damaged, 1. replace by hand everywhere (worse case scenario) 2. select again the default values
answered Sep 22 '18 at 11:05 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here