Hello, it’s been a long time that I block on a problem that I do not understand. I created an enumeration ( “WeaponSpreadType_Enum.h” and “WeaponSpreadType_Enum.cpp” ) for use in c ++ and blueprint, but the inclusion does not seem to want to be done in c++ script and I receive this error every time “Unrecognized type ‘EWeaponSpreadType’ - type must be a UCLASS, USTRUCT or UENUM”
And I do not forget to add #include “WeaponSpreadType_Enum.h” in my script
Thank you for your help
WeaponSpreadType_Enum.h :
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "WeaponSpreadType_Enum.generated.h"
/**
*
*/
UENUM(BlueprintType) //Blueprint Temporaire
enum class EWeaponSpreadType : uint8
{
WST_FullCircle UMETA(DisplayName = "FullCircle"),
WST_Circle UMETA(DisplayName = "Circle"),
WST_FullSquare UMETA(DisplayName = "FullSquare"),
WST_Square UMETA(DisplayName = "Square"),
WST_Line UMETA(DisplayName = "Line")
};