Userdata
Noun · Development
Definitions
A Lua type that represents arbitrary C data stored as a raw memory block. Used to expose C structs and objects to Lua scripts when embedding Lua in a host application.
In plain English: A way for Lua to hold onto a chunk of C data without knowing what's inside, letting scripts interact with the host program's objects.
Example: "Wrap the sprite object as userdata so Lua scripts can move it without touching the C internals."