Building Escape: UProperty changed to FProperty in 4.25

Hi everyone, I am rather stuck currently trying to get FProperty Working as UProperty was within the lesson for Exposing Parameters to the Editor.

In 4.25 unreal, the UProperty was changed out, and it does not translate directly to the new method which is FProperty.
Documentation here:

code in lesson:
UPROPERTY(EditAnywhere)
float TargetYaw = 90.f;

my code
FProperty UOpenDoor::EditAnywhere ;
float TargetYaw;

Have tried to use exact formatting as in the documentation, still doesnt work, the floats do not work if in private, only when in public, cannot compile code without receiving these errors and i am still very noob, so do not comprehend what the errors mean. .

Errors
\BuildingEscape\OpenDoor.h(31) : error C4596: ‘EditAnywhere’: illegal qualified name in member declaration
\BuildingEscape\OpenDoor.cpp(9) : error C2512: ‘FProperty’: no appropriate default constructor available
\BuildingEscape/OpenDoor.h(31) : error C4596: ‘EditAnywhere’: illegal qualified name in member declaration
\BuildingEscape\OpenDoor.gen.cpp(82) : error C2512: ‘FProperty’: no appropriate default constructor available

UProperty and UPROPERTY are not the same thing. What’s used in the lecture was not deprecated in 4.25, continue using the lecture code.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.