UPROPOERTY variables not showing in details

I´ve been trying to show some variables that I created in a C++ class and then create a Blueprint class based on it. But when I see the details of the object or try to find this variables in the Blueprints they do not show up.

I´ve basically copy and paste code from UE4 documentation see here: https://docs.unrealengine.com/en-us/Programming/Introduction, but the variables are not showing up for me.

// MyActor.cpp

#include "MyActor.h"

// Sets default values
AMyActor::AMyActor()
{
    //PrimaryActorTick.bCanEverTick = true;
    TotalDamage = 200.0f;
} 

// Called when the game starts or when spawned
void AMyActor::BeginPlay()
{
    Super::BeginPlay();
}

// Called every frame
void AMyActor::Tick(float DeltaTime)
{
    Super::Tick(DeltaTime);
}
// MyActor.h

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"

UCLASS()
class MYPROJECT3_API AMyActor : public AActor
{
    GENERATED_BODY()

public: 
    UPROPERTY(EditAnywhere)
    float TotalDamage;
    // Sets default values for this actor's properties
    AMyActor();

protected:
    // Called when the game starts or when spawned
    virtual void BeginPlay() override;

public: 
    // Called every frame
    virtual void Tick(float DeltaTime) override;
};

I want to modify this variables from the Event Graph. Please help me find what I did wrong, if you need anymore information I will gladly provide it to you.


Use BlueprintReadWrite or BlueprintReadOnly

UPROPERTY(EditAnywhere, BlueprintReadWrite)
float TotalDamage;