i can't modify c++ variable in blueprint editor

Hello, i’m working in a game and i’m using c++ and blueprints, i have some base classes that i wrote in c++ and i’m using them as the parent class of my blueprints.

i have put in c++ some variables that i need to modify in the blueprint editor, but they are just gray, i can change the value in the blueprint graph with a set node, but i cant set the default value in the blueprint editor, why this is happening ?

here is the code that i’m using to declare my variables in c++



	
	
public:
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Guns")
		float spread;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Guns")
		int32 ProjectilexShot;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Guns")
		float FireRate;


is there something wrong ? i missed something there ?

thanks in advance for the help.

p.s.: by the way i’m using ue 4.10.4.

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = “Guns”)

to

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = “Guns”)

thanks WHooKid!

Just wanted to elaborate a bit:

EditAnywhere = Variables
VisibleAnywhere = Components

EditDefaultsOnly if you don’t want the variable to be changed on a per-instance basis, or only in the class defaults.

Thanks for all the info, i’m using EditAnywhere because i need to setup the initial value in the blueprint, but the value can be changed with some upgrades found during the gameplay.

Make sure you’re using the .h file and not the .cpp file. :o