I am a Korean. That’s why I’m not good at talking. I hope you understand that.
There’s a problem.
I created an Actor derived class. We created UCustomMeshComponent* as a member variable.
c++ file
#include “MyActor.h”
#include “…/Plugins/Runtime/CustomMeshComponent/Source/CustomMeshComponent/Classes/CustomMeshComponent.h”
build.cs
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore” });
PrivateDependencyModuleNames.AddRange(new string[] { "CustomMeshComponent" });
// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore", "CustomMeshComponent" });
AMyActor::AMyActor()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don’t need it.
PrimaryActorTick.bCanEverTick = true;
CM_comp = NewObject(this);
}
A red line is drawn on the NewObject.
Help me, please. ㅜㅜㅜ