【Defold】Coroutine 処理を行う

Defold, DEVELOP

目次

公式

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/

Posted by kazupon