// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "CPPCalcType.generated.h" //ここでError
/**
*
*/
class CPP_BP_API CPPCalcType
{
public:
CPPCalcType();
~CPPCalcType();
};
▽エラー
cannot open source file “CPPCalcType.generated.h”
Thanks for the explanation.
To begin with, the description in the reference material and the one you gave me are so different that I will try again with the code you gave me.
However, this time another error is occurring, and I think I need to solve this one first.
(Influenced by changing the version to 5.4?)
This error is completely different from the title of your question, so I will look into it a little more and post another question.
Sorry for the half-■■■■■ way, but I will get back to you if there is any progress!
Thanks for letting us know about you too.
As I mentioned in my reply above, I have been plagued with another error, so I will be late learning about the description you gave me.
I apologize, but I will go ahead and find a solution to this error first.
I didn’t think it was so different, because I looked at the link you’ve shared in your post about enumerations. So I thought clarify that would be very helpful.
Your error seems to be brackets issues, you opened but not closed. Can you share your code?
Thank you…!
The header file contents are as follows
The cpp file has already been removed as you said it was not needed.
(The parent actor is created with None)
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
/**
*
*/
class CPP_BP_API ECPPCalcType
{
public:
ECPPCalcType();
~ECPPCalcType();
};
You don’t need a main class for an enum container.
Delete the class ECPPCalcType and create your enum class ECPPCalcType, e.g:
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
UENUM(BlueprintType)
enum class ECPPCalcType : uint8
{
Add,
Subtract,
Multiply,
Divide
};