Answer the question
In order to leave comments, you need to log in
How to use ENUM in another header file?
I declared ENUM in the AmbientMusicSystem header file and I can freely use it in it (as in cpp):
#pragma once
#include "CoreMinimal.h"
#include "Components/SceneComponent.h"
#include "AmbientMusicSystem.generated.h"
UENUM()
enum class EStressState : uint8 {
Calm = 0 UMETA(DisplayName = "Calm"),
Stress = 1 UMETA(DisplayName = "Stress"),
Run = 2 UMETA(DisplayName = "Run"),
Nothing = 3 UMETA(DisplayName = "Nothing")
};
UCLASS()
class MYPROJECT4_API AChangeStressStateTriggerBox : public ATriggerBox
{
EStressState toStressState;
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question