Files
Project-Reboot-3.0/Project Reboot 3.0/SoftObjectPtr.h
2023-03-05 14:01:15 -05:00

25 lines
384 B
C++

#pragma once
#include "Object.h"
#include "PersistentObjectPtr.h"
#include "SoftObjectPath.h"
#include "reboot.h"
struct FSoftObjectPtr : public TPersistentObjectPtr<FSoftObjectPath>
{
public:
};
template<class T = UObject>
struct TSoftObjectPtr
{
public:
FSoftObjectPtr SoftObjectPtr;
T* Get()
{
return FindObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString());
}
};