This commit is contained in:
Gray
2025-03-20 19:03:43 -04:00
parent c31cd611ce
commit 2260c9c9e0
3 changed files with 30 additions and 2 deletions

View File

@@ -86,6 +86,8 @@ static inline class UWorld* GetWorld()
static auto GameViewportOffset = Engine->GetOffset("GameViewport");
auto GameViewport = Engine->Get<UObject*>(GameViewportOffset);
if (!GameViewport) return nullptr;
static auto WorldOffset = GameViewport->GetOffset("World");
return GameViewport->Get<class UWorld*>(WorldOffset);