Hi,
repro steps:
-
Create new C++ project out of Blank template, dont add starter content
-
When new project launches and Editor opens go to AddNew->New C++ Class. Add new class derived from Actor, name it MyActor
-
Open MyActor.h in VS, add this code before class definition:
USTRUCT(BlueprintType) struct Fmystruct { GENERATED_BODY() UPROPERTY(BlueprintReadWrite, EditAnywhere) int32 myint; };
-
In class AMyActor add new member:
UPROPERTY(BlueprintReadWrite, EditAnywhere) Fmystruct mystruct;
-
Compile project by hitting compile button in EDITOR (!) main tab
-
After hot reload create new blueprint, inherit it from MyActor. Name it NewBlueprint
-
Open new blueprint, in event graph add this network:
68364- -
Compile blueprint
8)Go to MyActor.h in VS, add this code to Fmystruct:
UPROPERTY(BlueprintReadWrite, EditAnywhere)
int32 myint2;
-
Go to enreal editor and hit compile button.
-
When game hot reloads open NewBlueprint. Try to save. You will get error message. Try to compile, compilation may or may not be successfull. Notice that “break mystruct” node did not update to match current Fmystruct state