Search Issue Tracker

Won't Fix

Votes

0

Found in

5.6.3p3

Issue ID

958039

Regression

No

Undocumented nuance when yielding to a CustomYieldInstruction

Scripting

-

The process for yielding is different on the first iteration of a CustomYieldInstruction...

1. it checks the yield
2. places the coroutine in a queue no matter what and waits
3. once it starts processing the coroutine, if the previous yield returned false then it continues the coroutine.
4. if, however, the previous yield returned true then it does...
5. another yield check to verify
6. if this time the new yield is false, then it continues the coroutine.
7. if, however, the new yield is true, then waits and jumps back to 5.

  1. Resolution Note:

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.