ConstructionScript (and OnConstruction(const FTransform& Transform)) is a great tool to fuel procedural content generation. In the editor whenever a parameter is changed the ConstructionScript is called to update it. However some changes may only necessitate the running of some portion of the ConstructionScript, while other portions are redundant. Is there a way to determine which properties were changed, and only execute the relevant portions of the ConstructionScript?
I am using blueprints right now, so I’ve put this in the Blueprint Scripting section, but would also appreciate C++ examples.
Right now, for every value I want to monitor in this fashion, I have redundant private copies of public variables, and I check for discrepancies between the public and private pairs to determine which were modified from the outside, and run only the relevant code, but I feel like there must be a better way of accomplishing this without doubling every variable. Probably using dirty bits of some kind.
Thoughts?