You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
29 lines
780 B
C++
29 lines
780 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#if WITH_LOW_LEVEL_TESTS
|
|
|
|
#include "ObjectPtrTestClass.h"
|
|
#include "UObject/Class.h"
|
|
#include "UObject/Package.h"
|
|
#include "UObject/MetaData.h"
|
|
|
|
//can not put the #if inside as the expansion of IMPLEMENT_CORE_INTRINSIC_CLASS fails
|
|
#if WITH_EDITORONLY_DATA
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrTestClass, UObject,
|
|
{
|
|
auto MetaData = Class->GetOutermost()->GetMetaData();
|
|
if (MetaData)
|
|
{
|
|
MetaData->SetValue(Class, TEXT("LoadBehavior"), TEXT("LazyOnDemand"));
|
|
}
|
|
}
|
|
);
|
|
#else
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrTestClass, UObject, { });
|
|
#endif
|
|
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrDerrivedTestClass, UObjectPtrTestClass, {});
|
|
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrNotLazyTestClass, UObject, {});
|
|
|
|
#endif |