Is there a way to reset a variable value in child blueprints after its value is changed in parent blueprint?

I have a parent blueprint with 30 child blueprints. I made a variable in the parent that was empty at the time the children were created so all child blueprints have the variable at null

Then I updated the variable with values but the child blueprints aren’t updating.
Parent BP
image

Child BP
image

And I don’t want to go around painstakingly resetting all of those variables in 30 children.

Is there a way to just reset it for child blueprints? I tried setting it to private but the value still isn’t updating…?

EDIT: I even tried removing the variable entirely and recreating it but it still won’t update in children… waat?

EDIT 2: For now, I’m just using a workaround of populating the variable array again on beginplay. But this is a workaround, I’d very much like a solution.

Its working as expected on my end. Created a parent with a similar array, and when viewed in the child, it is updated.

I’ve tried with both a child created prior to the variable, and one after. Both seem to be updated. Adding new variables to the array, works on the child as well.

Did you compile and save before checking the child?

yes I did. I’ve been having this issue for some time now. But back then I had 7 characters and brushed it off… Oh btw I’m using 4.26 not 4.27 Put in the wrong tag. Perhaps it’s a 4.26 thing

Regrettably I don’t have 4.26 installed, so I’m not able to have that verified…

Clicking that yellow arrow reset button next to the delete button should reset it back to the default value. If it doesn’t, you can just shift+right click on “6 array elements” on the parent to Copy the value and shift+left click on “0 array elements” on the child to paste the values.

Edit: shift+click copy/paste might be a UE5 only thing, so might not work on older versions

Thank you but I don’t want to do that. There’s 30 child blueprints to go through. Like @Squize said, it should update automatically when the parent variable is updated. It’s probably a bug in my project cause I’m encountering this for the first time ever.

no worries, I’m using a workaround for now :cry:

Nvm, I apparently had 4.26.2 installed aswell! And it works…

Created ActorA which is just an Actor
Created ActorB, which is a child of A

Added a string array to ActorA, added 3 elements.
Opened ActorB and found the same 3 elements…

Same for ActorC, child of ActorB

You can however bulk edit them , selecting all 30 children, and updating them in a single run

image

3 Likes

Thank you <3

This seems to be the best solution for this “bug”…?

Yepp! I wasnt able to reproduce it on my end though, which was a bit strange… anyhow, glad we got it sorted !

1 Like