getrawmetatable
Returns the raw metatable.
Syntax
getrawmetatable(object: any) -> table
Parameters
| Parameter | Type | Description |
|---|---|---|
object | any | The object value used by the call. |
Returns
| Type | Description |
|---|---|
table | The raw metatable |
Description
getrawmetatable is part of the Metatables library. Metatable helpers operate below normal Lua protection: they read raw metatables, replace metamethods and inspect namecalls.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
local mt = getrawmetatable(game)
print(mt)
Notes
- Metatable changes are applied directly to the live object.