28 lines
834 B
C++
28 lines
834 B
C++
// @lint-ignore-every LICENSELINT
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "OculusXRResourceHolder.h"
|
|
#include "HeadMountedDisplayTypes.h" // for LogHMD
|
|
#include "UObject/ConstructorHelpers.h"
|
|
#include "Materials/Material.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// UOculusResourceManager
|
|
|
|
UOculusXRResourceHolder::UOculusXRResourceHolder(const FObjectInitializer& ObjectInitializer)
|
|
: Super(ObjectInitializer)
|
|
{
|
|
static ConstructorHelpers::FObjectFinder<UMaterial> StaticPokeAHoleMaterial(TEXT("/OculusXR/Materials/PokeAHoleMaterial"));
|
|
|
|
PokeAHoleMaterial = StaticPokeAHoleMaterial.Object;
|
|
|
|
if (!PokeAHoleMaterial)
|
|
{
|
|
UE_LOG(LogHMD, Error, TEXT("Unable to load PokeAHoleMaterial"));
|
|
}
|
|
else
|
|
{
|
|
UE_LOG(LogHMD, Log, TEXT("PokeAHoleMaterial loaded successfully"));
|
|
}
|
|
}
|