Skip to main content

别名

  • getcallbackmember

参数

Instance
必填
要检查 callback property 的 Instance object。Invalid Instance values 会抛出 argument error。
string
必填
通过 Roblox property metadata 解析的 string property name。只有 LUA_CALLBACK properties 可以返回 function。

返回值

function | nil
callback property 保存的 Lua function,或 function 无法解析可读取 function 时返回 nil。

示例

读取 BindableFunction.OnInvoke 中保存的 callback function。