function that gets called on blueprint compile?


what im trying to do is,
there is a dynamic array of a struct.
the struct has staticmesh and staticmeshcomponent variables.

when the user adds an item to the struct array in the blueprint editor, i want the staticmeshcomponent to be created and the static mesh set.

i tried in the class constructor but it doesnt work, guessing because that doesnt get called when the blueprint compiles.

how can i handle this?


It’s how BP_SkySphere forces update of some property i forgot the name of

PostEditChangeProperty as far as I know (and maybe other related functions). There’s also UBlueprint::OnCompiled but I haven’t checked whether it is useful here.