Developer knowledge network · moderated exchange

مجتمع الكود غير الموثوق به

أبحاث المطورين، مجتمع الهندسة العكسية والترميز

Knowledge indexيعيش
4Categories
919Threads
2.8Kدعامات
Tutorial

Traversing Unity GameObjectManager Active Node Linked List in Rust IL2CPP [v2.4 Technical Discussion]

rust_il2cpp_dev
IL2CPP Master
MEMBER
مندوب: 165
تاريخ الانضمام: Oct 2020
دعامات: 7
شكرًا: 16
1 months ago · Jul 4, 2026 11:20 AM
#1

In Unity engine (UnityPlayer.dll), GameObjectManager maintains doubly-linked lists of all game objects in the scene:

  1. Base pointer: GOM = *(uint64_t*)(UnityPlayerBase + 0x17C12E0).
  2. Structure:
    • 0x08: lastTaggedObject
    • 0x10: taggedObjects (Active entities: Players, Heli, Bradleys)
    • 0x18: lastActiveObject
    • 0x20: activeObjects (Ores, Collectibles, Traps, Crates)

Iterating taggedObjects->nextObject reads all player entities in under 12 microseconds without calling game methods!

ptr_arithmetic
C++ Wizard
MEMBER
مندوب: 162
تاريخ الانضمام: May 2018
دعامات: 73
شكرًا: 42
1 months ago · Jul 4, 2026 6:14 PM
#2

Traversing GOM linked lists is so much faster than calling UnityEngine.Object.FindObjectsOfType in IL2CPP.

vtable_slayer
Senior Reverser
MEMBER
مندوب: 215
تاريخ الانضمام: Mar 2018
دعامات: 86
شكرًا: 61
1 months ago · Jul 5, 2026 1:02 AM
#3

Essential offset for external memory reading in Rust.