Skip to content

Adjusted UPROPERTY specifiers of CreateDefaultSubobject generated components

David Gilbert requested to merge feature/uproperty_serialization_fix into dev/5.3

Set C++ created component properties to VisibleAnywhere instead of EditAnywhere and BlueprintReadOnly instead of BlueprintReadWrite. According to https://landelare.github.io/2023/01/07/cpp-speedrun.html and https://github.com/ibbles/LearningUnrealEngine/blob/master/UPROPERTY.md, this does not break serialization as easily. Also called AddInstanceComponent to make runtime added components show up in the inspector.

Merge request reports

Loading