mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
Add project files.
This commit is contained in:
24
Project Reboot 3.0/KismetSystemLibrary.h
Normal file
24
Project Reboot 3.0/KismetSystemLibrary.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user