1개월 전 · Jul 2, 2026 6:26 PM
For anyone reversing Unreal Engine games (UE4 / UE5):
- Find
GWorldpointer (offset varies per build, look for strings"World %s"in.rdata). UWorld->PersistentLevelat offset0x30.ULevel->Actorsarray is an array ofAActor*pointers (TArray<AActor*>at offset0x98):
CPP
uintptr_t persistentLevel = Read<uintptr_t>(gWorld + 0x30);
uintptr_t actorArray = Read<uintptr_t>(persistentLevel + 0x98);
int actorCount = Read<int>(persistentLevel + 0xA0);
for (int i = 0; i < actorCount; i++) {
uintptr_t actor = Read<uintptr_t>(actorArray + (i * 8));
if (!actor) continue;
int actorId = Read<int>(actor + 0x18);
// Match actorId in GNames pool...
}