tassetptr impl, harvesting stuff, relevancy?

This commit is contained in:
Milxnor
2023-03-26 21:37:47 -04:00
parent f42c420486
commit 9c8b327cd7
23 changed files with 267 additions and 37 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include "PersistentObjectPtr.h"
#include "StringAssetReference.h"
#include "reboot.h"
class FAssetPtr : public TPersistentObjectPtr<FStringAssetReference>
{
public:
};
template<class T = UObject>
class TAssetPtr
{
public:
FAssetPtr AssetPtr;
T* Get()
{
if (!AssetPtr.ObjectID.AssetLongPathname.IsValid())
return nullptr;
return FindObject<T>(AssetPtr.ObjectID.AssetLongPathname.ToString());
}
};