-
Hi ! Wanted usage:
script b:
Is there something I missed about how to use it ?
by
Lastly, I came to the sources to try to understand it by myself, but I stumbled upon coroutine.resume and coroutine.yield, that (in my understanding) doesn't seems to be defined anywhere. Does it come from Godot API ? If so, do you know where I can find some documentation about it ? Pretty hard to find Godot documentation that do more than scratching the surface. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there!
Not at all, this is a bug. godot-lua-pluginscript/src/late_globals.lua Lines 132 to 133 in b2100ff Sorry about that. I created issue #14 related to this problem. Thanks for the report! |
Beta Was this translation helpful? Give feedback.
-
#15 should fix this. |
Beta Was this translation helpful? Give feedback.
Hi there!
I thought data was already being passed from
resume
to the code thatyield
ed, but I'll be honest and say that I haven't tested this flow.coroutine.resume
andcoroutine.yield
are builtin Lua functions, part of its coroutine implementation.Not at all, this is a bug.
Most likely the fault is the lack of
return
ing the result ofcoroutine.yield
at the end ofGD.yield
:godot-lua-pluginscript/src/late_globals.lua
Lines 132 to 133 in b2100ff
Sorry about that.
I created issue #14 related to this problem. Thanks for the report!