VRTowerDef/Plugins/MetaXR/Source/OculusXRHMD/Private/OculusXRResourceHolder.cpp

28 lines
834 B
C++
Raw Normal View History

2024-05-29 08:53:41 +00:00
// @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"));
}
}