mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
24 lines
616 B
C++
24 lines
616 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
#include "UnrealString.h"
|
|
|
|
#include "reboot.h"
|
|
|
|
class UKismetSystemLibrary : public UObject
|
|
{
|
|
public:
|
|
static FString GetPathName(UObject* Object)
|
|
{
|
|
static auto GetPathNameFunction = FindObject<UFunction>("/Script/Engine.KismetSystemLibrary.GetPathName");
|
|
static auto KismetSystemLibrary = FindObject("/Script/Engine.Default__KismetSystemLibrary");
|
|
|
|
struct { UObject* Object; FString ReturnValue; } GetPathName_Params{ Object };
|
|
|
|
KismetSystemLibrary->ProcessEvent(GetPathNameFunction, &GetPathName_Params);
|
|
|
|
auto Ret = GetPathName_Params.ReturnValue;
|
|
|
|
return Ret;
|
|
}
|
|
}; |