You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
GetTypeHash will create a packaged object ref for hashing if the class is defined as lazy load otherwise raw pointer is hashed a map was added for moved objects and ObjectPathId can be a WeakObjectPtr the map allows UObjects to be mapped back to packed object refs #rb zousar.shaker https://p4-swarm.epicgames.net/reviews/23356491 #preflight 63b5de641c35d1cbdbccecf7 #preflight 63b70406e26e31879b8aa6d3 [CL 23589497 by joe pribele in ue5-main branch]
24 lines
589 B
C++
24 lines
589 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"
|
|
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrTestClass, UObject,
|
|
{
|
|
auto MetaData = Class->GetOutermost()->GetMetaData();
|
|
if (MetaData)
|
|
{
|
|
MetaData->SetValue(Class, TEXT("LoadBehavior"), TEXT("LazyOnDemand"));
|
|
}
|
|
}
|
|
);
|
|
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrDerrivedTestClass, UObjectPtrTestClass, {});
|
|
|
|
IMPLEMENT_CORE_INTRINSIC_CLASS(UObjectPtrNotLazyTestClass, UObject, {});
|
|
|
|
#endif |