Spawned actors get their defaults from their parents instead of themselves in built project

I have a class blueprint with many children. The children inherit variables from the parent. The children each have their own defaults set for these variables.

When I play in editor or choose standalone, it works as I would expect. When one of the children is spawned, its variables are set to its own defaults.

When I build a package and run the exe however, the variables of the spawned children are set to the values from their parents’ defaults.

I’d like to know if this is a bug or if I’m doing something wrong when I build the package.

Did you ever find out what was happening? What caused this?

Nope, still happens. We still cannot get a working build. After running into some other show-stopping bugs, blueprints have become a sore spot for our developer.

Interesting this just started happening for us. For some reason it didn’t seem to override the mesh component though. I’ll look into it more and if I find a solution, I’ll let you know.

I guess a workaround may be to manually assign all your default values in the Blueprint’s Begin Play event. It’s not ideal, but it might work.

It somewhat works but kinda defeats the purpose of defaults :stuck_out_tongue: