You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the lua script I'd like to be able to call a C# method that not only yields, but also waits for a value, eg:
someVar = someCSMethod('someParameter')
Where "someCSMethod" looks like this (returning a yield request to stop the script...):
But then, is it possible to return an actual value to 'someVar' on the coroutine being resumed?
Hope I've explained this well enough, any help will be greatly appreciated :)
Small edit, the only hack I can currently think of for this is making an "extra" function and prepending it to the lua script so we can combine "yielding" from a C# method with returning a value, something like this:
It's a bit hacky and undesirable, so the first question still stands :)
The text was updated successfully, but these errors were encountered:
In the lua script I'd like to be able to call a C# method that not only yields, but also waits for a value, eg:
someVar = someCSMethod('someParameter')
Where "someCSMethod" looks like this (returning a yield request to stop the script...):
But then, is it possible to return an actual value to 'someVar' on the coroutine being resumed?
Hope I've explained this well enough, any help will be greatly appreciated :)
Small edit, the only hack I can currently think of for this is making an "extra" function and prepending it to the lua script so we can combine "yielding" from a C# method with returning a value, something like this:
It's a bit hacky and undesirable, so the first question still stands :)
The text was updated successfully, but these errors were encountered: