コンテンツへスキップ

KAZUPON研究室

【Defold】Coroutine 処理を行う

2020/10/04 by kazupon

公式

https://defold.com/ref/coroutine/

local function async(func)
    local co = coroutine.running()
    func(function()
        local ok, err = coroutine.resume(co)
        if not ok then print(err) end
    end)
    coroutine.yield()
end

アセットの方が便利かも

https://defold.com/assets/defunico/

カテゴリー Defold、DEVELOP
貸株成果:2020年09月
【Unity】 “Enter Play Mode Options” でEditor 再生開始を早くする
© 2025 KAZUPON研究室 • Built with GeneratePress