I Have Problem In UE5 . I Wrote The Code Just Like The Instructor , Compiled It , And Added The Created Class To The Project . Still No Input Appeared . Back To Look At Visual Studio Community Editor I Found This Error :
The command “D:\UE_5.5\Engine\Build\BatchFiles\Build.bat MyProjectEditor Win64 Development -Project=“D:\Learning Materials\Unreal projects\MyProject\MyProject.uproject” -WaitMutex -FromMsBuild -architecture=x64 -WorkingDir=D:\Learning Materials\Unreal projects\MyProject\Intermediate\ProjectFiles -Files=…\Source\MyProject\MyActor.cpp” exited with code 8.
include “MyActor1.h”
include “Engine/Engine.h”
DEFINE_LOG_CATEGORY_STATIC(MyLogCategory, Log, All);
AMyActor1::AMyActor1()
{
PrimaryActorTick.bCanEverTick = false;
}
void AMyActor1::BeginPlay()
{
Super::BeginPlay();
UE_LOG(MyLogCategory, Warning, TEXT("I'm Working!"));
if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("MyActor1 is Working!!"));
}
}
// Called every frame
void AMyActor1::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
And This Is All My Code .