I just ported my project to 4.23 and suddenly some construction scripts stopped working. After some troubleshooting I was able to figure out that some specific arrays no longer clear automatically each time construction script runs. They now require to be manually cleared. This is quite confusing since it is not consistent, as some arrays clear while others don’t.
Here’s a very simple example:
This is a small function that runs in the construction script, it adds HISM component, adds it to an array and prints the array length.
In 4.22, every time I touch the blueprint actor, construction script resets all data and re-runs:
The exact same construction script in 4.23 accumulates those HISMs in the array, without clearing it automatically:
Is this a bug or some new feature of 4.23 I need to look out for? If it’s a feature, which rule defines if the construction script clears specific array or not before it’s called again?
Thanks in advance.