Is there any way to change only one value in structure?

Hi. I have big structures(20+ pins) and sometimes i need to change only one value in that structure. Is there any way to do it without connecting every pin of “BreakStructure” to the same pin of “MakeStructure” or “SetMembers”?

Not that I’m aware of, at least not with blueprints. You can certainly do it very easily with C++ code though. The format is something as follows:

[StructName].[property] = [new value];

One work around is to create functions to act as wrappers for your struct. Internally, the function would break / make the struct, but the input value for the function would just be the one value you want to change. This does mean you’d have to create a function for each value you want to change though, so it’s not super ideal.

Seems i need to make a C++ function to automate it. Thx

If you hide the pins that you don’t want set in the SetMembers node, it will function exactly as you need.

OMG! Thank you. I thought pin hiding is just a cosmetic function. You saved tons of my time

Feels like i have done allot unnecessary dragging now… Thanks :heart:

I can’t hide struct pins, when i press “Remove this struct variable pin” or “Remove all other pins” the screen just blinks, and the pins stay as they were