UE4 c++编译报错之:使用了未定义类型

// Fill out your copyright notice in the Description page of Project Settings.


#include "MyCharacter.h"
#include 
//#include 
// Sets default values
AMyCharacter::AMyCharacter()
{
 	// Set this character to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
	PrimaryActorTick.bCanEverTick = true;

	if (GEngine) {
		GEngine->AddOnScreenDebugMessage(-1, 10, FColor::Green, TEXT("MyCharacter-Contruct"));
	}

	fpsCamera = CreateDefaultSubobject(TEXT("FpsCamera"));
	fpsCamera->bUsePawnControlRotation = true;

	//角色模型本身不转
	bUseControllerRotationPitch = false;
	bUseControllerRotationYaw = false;
	bUseControllerRotationRoll = false;

	USceneComponent* capsule = CastChecked(GetCapsuleComponent());
	check(capsule);
}

// Called wh

你可能感兴趣的:(ue4,c++,开发语言)