별칭
getactorfromstate
인수
thread
필수
associated Actor weak reference를 찾기 위해 thread data를 확인할 Luau thread입니다.
반환값
Instance | nil
thread의 the associated Actor weak reference에서 resolve된 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