> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# getsignalargumentsinfo

> 从 RBXScriptSignal 签名返回参数信息的 array table。它不返回捕获到的运行时参数值。

<div className="real-function-page">
  ```lua theme={null}
  getsignalargumentsinfo(signal: RBXScriptSignal): {{Name: string, Type: string}}
  ```

  ## 参数

  <ParamField path={"signal"} type={"RBXScriptSignal"} required>
    要检查其 event descriptor signature 的 RBXScriptSignal。
  </ParamField>

  ## 返回值

  <ResponseField name={"argumentInfo"} type={"{{Name: string, Type: string}}"}>
    一个 array table，其中每个条目都有 Name 和 Type 字符串。如果无法读取签名或签名没有条目，该函数会返回一个 fallback entry，其中 Name 为 arg1，Type 为 Variant。
  </ResponseField>

  ## 示例

  Inspect an RBXScriptSignal signature and print each argument name with its type name.

  ```lua theme={null}
  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
  ```
</div>
