参数
RBXScriptSignal
必填
要检查其 event descriptor signature 的 RBXScriptSignal。
返回值
{{Name: string, Type: string}}
一个 array table,其中每个条目都有 Name 和 Type 字符串。如果无法读取签名或签名没有条目,该函数会返回一个 fallback entry,其中 Name 为 arg1,Type 为 Variant。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
从 RBXScriptSignal 签名返回参数信息的 array table。它不返回捕获到的运行时参数值。
getsignalargumentsinfo(signal: RBXScriptSignal): {{Name: string, Type: string}}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remote = ReplicatedStorage:FindFirstChild("RemoteEvent")
if remote then
for _, argument in ipairs(getsignalargumentsinfo(remote.OnClientEvent)) do
print(argument.Name, argument.Type)
end
end