4.15.1 Modifying custom struct breaks blueprint references on project startup

I’ve made a custom struct and filled it with some variables (variable types and default values seem irrelevant). I assign this struct to a variable in a blueprint class (in my case, my playercontroller) and then reference this variable in other blueprints.

The bug I’m running into happens whenever I modify the struct, save my project, and close it. Once I open my project again, ALL pins that link to the referenced variable of the struct are broken in all blueprints in the project. I’ve read some other threads that experience a similar issue, but it appears to be unfixed. However, I’ve fortunately been able to find a “workaround” - although annoying to do anytime I modify the struct. I simply have to create a new struct that’s identical to the bugged one with a different name and reference it all in the same places, then delete the old one. That will work unless I modify the new struct, which results in the same bug.

I hope this gets fixed…if there wasn’t that work around then this bug would practically be a showstopper for development.

Hi Memorykiller,

How are you modifying the struct? Are you just renaming variables. changing the variable type, or adding/removing variables?

I tested this in a new project and only changing variable types or removing variables would cause pins to disconnect. This is expected since the variable pins aren’t compatible anymore.

Hey TJ, thanks for responding! I would modify the struct by either adding a variable or renaming one. I understand that if I were to change the variable type or remove a variable, that pins to that variable should break. Though the behavior I’m seeing is that if the struct is modified at all, then the pin to the struct in my blueprints gets broken even though it would make sense for them to remain connected. (ex: Variable A in struct remains untouched but I added a new variable B to the struct - Variable A’s pin would break regardless). The bigger problem I am facing with it is that even after reconnecting the pins when opening my project, they break once more when I close down my project and reopen (even without modifying the struct further). Almost like the blueprints didn’t save the pin connection.

Are the pins that keep resetting contained within a child blueprint?

I haven’t been able to reproduce this internally. Would you be able to create a small test project that has the issue or exact repro steps from a new project?

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information to reopen the post.

Cheers,

TJ