Thank you for your reply. Is the function the same as this one?
class USceneComponent;
Uclass()
class MYTOWERDEFENSE_API ATowers : public ARuleOfTheCharacter
{
GENERATED_BODY()
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "BaseAttribute", meta = (AllowPrivateAccess = "true"))
USphereComponent * AttackRange;
}