#pragma once #include "Object.h" #include "PersistentObjectPtr.h" #include "SoftObjectPath.h" #include "reboot.h" struct FSoftObjectPtr : public TPersistentObjectPtr { public: }; template struct TSoftObjectPtr { public: FSoftObjectPtr SoftObjectPtr; T* Get() { if (SoftObjectPtr.ObjectID.AssetPathName.ComparisonIndex.Value <= 0) return nullptr; return FindObject(SoftObjectPtr.ObjectID.AssetPathName.ToString()); } };