语法
getactors(): table返回值
| 名称 | 类型 | 描述 |
|---|---|---|
actors | table | Actor 实例的数组表。 |
说明
返回运行时已知的 Actor 实例。
无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。
返回 actors (table)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
使用占位值的示例调用。
local result = getactors()
print(result)Actors
getactors(): table| 名称 | 类型 | 描述 |
|---|---|---|
actors | table | Actor 实例的数组表。 |
返回运行时已知的 Actor 实例。
无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。
返回 actors (table)。使用返回表区分成功值、nil 结果和可恢复错误。
使用占位值的示例调用。
local result = getactors()
print(result)