DestructScriptObject
function · ui · orchestration
- Address
0x701b40· 97 bytes, up to0x701ba0- Meaning
- Unregisters all events, releases OnEvent and frees the event index array
- Confidence
- verified, proof two
- Finding
- ui/script#the-script-object
Finding: The script object in ui: the script layer and events
The script object is 0x24 bytes with the vtable 0x811f4c: a count of holders of its Lua table
(+0x4), the registry reference of that table (+0x8, −2 when there is none), its OnEvent slot
(+0xc), and an array of the event indices it listens to (capacity +0x14, count +0x18, data
+0x1c, grow step +0x20). Its Lua table is made on first use: a table whose element 0 is the
object as light userdata, with the metatable the global __framescript_meta holds. Releasing the
last holder clears element 0, leaves the metatable, and frees the reference.
The derivation is in the doc.
Callers 3
Callees 3
Calls and jumps by a bare address, from tables/calls.tsv.