fix: multiple issuse
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#include "SkillTreeManager.h"
|
#include "SkillTreeSubsystem.h"
|
||||||
#include "SkillTreeComponent.h"
|
#include "SkillTreeComponent.h"
|
||||||
#include "Engine/World.h"
|
#include "Engine/World.h"
|
||||||
#include "Kismet/GameplayStatics.h"
|
#include "Kismet/GameplayStatics.h"
|
||||||
|
|||||||
@@ -12,18 +12,32 @@ AUTAD_UIGameMode::AUTAD_UIGameMode()
|
|||||||
|
|
||||||
// set default pawn class to our Blueprinted character
|
// set default pawn class to our Blueprinted character
|
||||||
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(
|
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(
|
||||||
TEXT("/Game/Blueprints/BP_TopDownCharacter"));
|
TEXT("/Game/Blueprints/BP_MainCharacter"));
|
||||||
if (PlayerPawnBPClass.Class != nullptr)
|
if (PlayerPawnBPClass.Class)
|
||||||
{
|
{
|
||||||
DefaultPawnClass = PlayerPawnBPClass.Class;
|
DefaultPawnClass = PlayerPawnBPClass.Class;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UE_LOG(
|
||||||
|
LogTemp, Error,
|
||||||
|
TEXT(
|
||||||
|
"AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainCharacter. Please ensure it exists"));
|
||||||
|
}
|
||||||
|
|
||||||
// set default controller to our Blueprinted controller
|
// set default controller to our Blueprinted controller
|
||||||
static ConstructorHelpers::FClassFinder<APlayerController>
|
static ConstructorHelpers::FClassFinder<APlayerController>
|
||||||
PlayerControllerBPClass(
|
PlayerControllerBPClass(
|
||||||
TEXT("/Game/Blueprints/BP_TopDownPlayerController"));
|
TEXT("/Game/Blueprints/BP_MainPlayerController"));
|
||||||
if (PlayerControllerBPClass.Class != NULL)
|
if (PlayerControllerBPClass.Class)
|
||||||
{
|
{
|
||||||
PlayerControllerClass = PlayerControllerBPClass.Class;
|
PlayerControllerClass = PlayerControllerBPClass.Class;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UE_LOG(
|
||||||
|
LogTemp, Error,
|
||||||
|
TEXT(
|
||||||
|
"AUTAD_UIGameMode::AUTAD_UIGameMode(): Failed to find BP_MainPlayerController. Please ensure it exists"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user