Recently I had a case (twice) when code was working in debug build but was totally messed up in shipping. The scenario is: make some base class in c++, some vars ‘initialized’ like this instead of constructor (some not at all):
UPROPERTY()
float someSetting = 1.0f;
UPROPERTY(BlueprintReadOnly)
bool dirty;
Then extend the actor in bp, everything works in pie and in development build but not in shipping. Why exactly and why does it even compile? I remember 5.0 refused to build if structs didn’t have explicit constructors and I thought it was dumb back then, now I think it’s dumb the other way ![]()