Yuari
Documentation
Docs/Metatables/getrawmetatable

getrawmetatable

Returns the raw metatable.

Syntax

getrawmetatable(object: any) -> table

Parameters

ParameterTypeDescription
objectanyThe object value used by the call.

Returns

TypeDescription
tableThe 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.