Download

Editable UPROPERTY

hi,
im add an editable UPROPERTY to an Actor.
My Code:

.h


UPROPERTY(VisibleAnywhere, EditAnywhere, Category = CheckPoint)
bool bIsStart;

.cpp


//constructor
bIsStart = false;

but inside the editor its always readonly

Hi Xces,

You should use either VisibleAnywhere or EditAnywhere (which implies visible as well). I’m actually a little surprised you didn’t get a warning/error from UHT for using both. The first one seems to be winning, since it’s showing up as read only.

Cheers,
Michael Noland