エイリアス
getactorfromstate
引数
thread
必須
associated Actor weak reference を確認する thread data を持つ Luau thread。
戻り値
Instance | nil
thread の the associated Actor weak reference から解決された Actor Instance、または valid actor reference がない場合は nil。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Luau thread に関連付けられた Actor Instance を返します。最初の argument は thread である必要があります。function は thread の thread data を読み取り、Actor reference と positive container count を要求し、その後 the associated Actor を読み取ります。actor weak reference が有効な場合は Instance として push され、それ以外の場合は function が nil を返します。
getactorfromthread(thread: thread): Instance | nil
getactorfromstatefor _, thread in ipairs(getactorthreads()) do
local actor = getactorfromthread(thread)
print(actor)
end