Skip to main content

别名

  • getactorfromstate

参数

thread
必填
要检查其 thread data 中 associated Actor weak reference 的 Luau thread。

返回值

Instance | nil
从 thread 的 the associated Actor weak reference 解析出的 Actor Instance,或在没有 valid actor reference 时返回 nil。

示例

Resolve the Actor Instance associated with a Luau thread, when that thread has a valid actor reference.