Class variants does not appear in the actor's details

Good in unity engine variables appear in the list of details but in unity I created my actor class in C ++ in AGermanyGrenade.h

Public:

Float mDamage;

AGermanyGrenade.cpp

… Begin () {
    

MDamage = 100.0f;
}

But this parameter does not appear in the details as I saw in an example of blue print and would like to know how I can solve this

Hey FeijaoPib98-

For your properties to show in the editor, they need to be marked as UPROPERTY() for the editor to recognize them. You can find additional information on using uproperties here: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Cheers

Thanks man!