- Home /
c# equivalent to a js line of code for threading?
Hi guys, I am translating texturescale.js from the Unity community Wiki (http://wiki.unity3d.com/index.php/TextureScale) to C# and I have arrived at the following line of code:
Thread thread = useBilinear? new Thread(BilinearScale) : new Thread(PointScale);
However, I am getting that the best overloaded method match for 'System.Threading.Thread.Thread (System.Threading.ThreadStart)' has some invalid arguments (CS1502)
I am gathering that the intent is to add two new threads to thread, conditonnaly to useBilinear being true, but I am having trouble expressing it.
Any ideas?
Thanks,
-Jeff
Gah, never$$anonymous$$d just found the cs equivalent in the bottom of the wiki :)
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Update Method doesn't see value set by other thread 0 Answers
object cleanup when not relevant 0 Answers