- Home /
Question by
vbbartlett · Feb 11, 2014 at 01:11 AM ·
yieldienumerator
Create a class like WWW which a IEnumerator will wait on.
Anyone have any ideas about how to create a class that you can return in a yield statement and which can be waited on to finish some task or tasks?
MYClass mc = new MyClass({inputs});
yield return mc;
The class might wait on user input or some complicated WWW communications or a TCP connection...
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613133140im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
IEnumerator does not exist 6 Answers
Increase variable for a few seconds 2 Answers
[ Coroutine: Move Next ] CPU usage 0 Answers
Coroutoutine doesnt work properly. 3 Answers