- Home /
This question was
closed Jul 21, 2011 at 01:20 PM by
biohazard for the following reason:
Solved
Question by
biohazard · Jul 21, 2011 at 12:51 PM ·
javascriptyieldfor-loop
Issue with yield
i've got a loop supposed to rotate a game object using values out of a text asset, the problem is that my for loop runs too fast and goes through those 1640 lines way too fast, but everytime i try to build in a yield to make the loop wait for one seconds the loop completely stops being executed.
any help is appreciated
thanks in advance,
bio
Comment
Post your code. The yield instruction may cause many problems if you don't understand what it actually does.
never$$anonymous$$d, i solved it. i won't post my error here because it was actually awkward and irrelevant
Follow this Question
Related Questions
A node in a childnode? 1 Answer
What's wrong with this Loop? 2 Answers
Why can't i set my integer to -1? 2 Answers
[SOLVED]Does this loop actually end? 1 Answer