I’ve created a custom C++ class that has some variables in it which I’ve exposed to blueprints like this:
/**How fast we move*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Custom)
However when I drag the class into the editor, or create a blueprint based on the class I am unable to change the value. I’ve tried changing the value directly on an object in the world, as well as through the blueprint editor. It just looks like this:
I got this problem too at I first try with the ACT RPG learning program. I move PostEditChangeProperty() and PostInitProperties() from public to protected, and keep the variables I want to edit in blueprint in public, then I run compile. Everything seems to be right now, and I can change the values of the variables same as the tutorial. But I don’t know the exact reason for this.