UPROPERTY(... Category="Demage") - Problem

Hi,

I have a question regarding the programming tutorial in C ++.

I created a instance from AActor class called FirstActor and I created some variables as explained in tutorial.




// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

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

UCLASS()
class MYPROJECT4_API AFirstActor : public AActor
{
	GENERATED_BODY()
	
public:	
	AFirstActor();

public:	

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Demage")
		int32 TotalDemage;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Damage")
		float DamageTimeInSeconds;

	UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Transient, Category = "Damage")
		float DamagePerSecond;

};




But inside UE4 Editor I´m getting two Categories with the same name. I would like to have just one category with all proprieties inside of it as the tutorial.

my UE4 Editor (how it´s showing)
UE4_Doubt.png

There’s a typo in your first “Demage”



	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "**Demage**")


Demage != Damage

:slight_smile: