Hi guys,
Weird problem, any code with this format:
“for(var t : Transform in colliderObjs)”
does NOT work.
However a simple loop like:
for(var i:int=0;i<bla.length;i++)
DOES work.
How come? Am I doing something wrong?
Hi guys,
Weird problem, any code with this format:
“for(var t : Transform in colliderObjs)”
does NOT work.
However a simple loop like:
for(var i:int=0;i<bla.length;i++)
DOES work.
How come? Am I doing something wrong?
Is this UnityScript issue?
If you can reproduce it reliably (iterate over the same collection both ways), then please report a bug.
Yes this happens on all my project, I can’t use the “in” in any loops, this happens on all projects I am trying to port. I thought I was missing something.
How can I report a bug?
Not sure what Unity version you are using, but in 5 for sure, you can just do: Help Menu → Report a Bug… – it will even send your project and everything with the report, so they can recreate it. Very simple and sweet.