Hey,
I have a subclass of USceneComponent with a few UPROPERTY’s whose defaults are meant to be set in the properties panel of a blueprint. Every time I make a change to the code of the component – including when there are no changes in the header – the values set in blueprint reset to the default values.
Here is a minimal example of a component that has the issue for me:
UCLASS( ClassGroup=(Test), meta=(BlueprintSpawnableComponent) )
class GAME_API UTestComponent : public USceneComponent {
GENERATED_UCLASS_BODY()
public:
UPROPERTY(BlueprintReadOnly, EditDefaultsOnly, Category = Test)
TArray<float> TestArray;
}
The problem is persisting both when I close the editor and compile, when I use hot reload compiling through my IDE and when using hot load when compiling from the editor.