<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Unity: Making the Switch from JS to C# (Part 2)</title>
	<atom:link href="http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unity-making-the-switch-from-js-to-c-part-2</link>
	<description></description>
	<lastBuildDate>Thu, 02 Oct 2025 17:28:23 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: Geoff</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-69</link>
		<dc:creator><![CDATA[Geoff]]></dc:creator>
		<pubDate>Sun, 07 Mar 2010 06:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-69</guid>
		<description><![CDATA[Also in the Yield section you might want to bring some attention to using StartCoroutine() to call a method that returns an IEnumerator;&lt;br /&gt;&lt;br /&gt;Such as to call your public IEnummerator DoIt() method from some random place in code you need&lt;br /&gt;StartCoroutine(DoIt()); specifically and not just&lt;br /&gt;DoIt():&lt;br /&gt;That hung me up a bit tonight.]]></description>
		<content:encoded><![CDATA[<p>Also in the Yield section you might want to bring some attention to using StartCoroutine() to call a method that returns an IEnumerator;</p>
<p>Such as to call your public IEnummerator DoIt() method from some random place in code you need<br />StartCoroutine(DoIt()); specifically and not just<br />DoIt():<br />That hung me up a bit tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-68</link>
		<dc:creator><![CDATA[Geoff]]></dc:creator>
		<pubDate>Sun, 07 Mar 2010 05:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-68</guid>
		<description><![CDATA[Cheers for starting this article. I&#039;m just starting with Unity though I&#039;ve got tons of C# experience. Translating from JS examples to C# got me hung up a couple of times.&lt;br /&gt;&lt;br /&gt;One is assigning to a single x,y,or z variable on a position vector, such as:&lt;br /&gt;transform.position.x = 0.5f;&lt;br /&gt;Gives you the error:&lt;br /&gt;&quot;Cannot modify the return value of &#039;UnityEngine.Transform.position&#039; because it is not a variable&quot;&lt;br /&gt;So you need to use something like this:&lt;br /&gt; Vector3 position = transform.position;&lt;br /&gt;  position.x = 0.5f;&lt;br /&gt;  transform.position = position;&lt;br /&gt;&lt;br /&gt;Which I found from this thread:&lt;br /&gt;http://forum.unity3d.com/viewtopic.php?t=6900&amp;highlight=properties]]></description>
		<content:encoded><![CDATA[<p>Cheers for starting this article. I&#39;m just starting with Unity though I&#39;ve got tons of C# experience. Translating from JS examples to C# got me hung up a couple of times.</p>
<p>One is assigning to a single x,y,or z variable on a position vector, such as:<br />transform.position.x = 0.5f;<br />Gives you the error:<br />&quot;Cannot modify the return value of &#39;UnityEngine.Transform.position&#39; because it is not a variable&quot;<br />So you need to use something like this:<br /> Vector3 position = transform.position;<br />  position.x = 0.5f;<br />  transform.position = position;</p>
<p>Which I found from this thread:<br /><a href="http://forum.unity3d.com/viewtopic.php?t=6900&#038;highlight=properties" rel="nofollow">http://forum.unity3d.com/viewtopic.php?t=6900&#038;highlight=properties</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: torncanvas</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-61</link>
		<dc:creator><![CDATA[torncanvas]]></dc:creator>
		<pubDate>Thu, 07 Jan 2010 02:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-61</guid>
		<description><![CDATA[You can actually use print in C#, too.  I use it all the time. :)]]></description>
		<content:encoded><![CDATA[<p>You can actually use print in C#, too.  I use it all the time. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hk網頁設計</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-52</link>
		<dc:creator><![CDATA[hk網頁設計]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 09:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-52</guid>
		<description><![CDATA[Thank you for your article,keep it up]]></description>
		<content:encoded><![CDATA[<p>Thank you for your article,keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: col000r</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-50</link>
		<dc:creator><![CDATA[col000r]]></dc:creator>
		<pubDate>Fri, 11 Dec 2009 14:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-50</guid>
		<description><![CDATA[Mathieu: Well, my personal reasons are that weird stuff keeps happening in Javascript... I&#039;ve been trying to come up with a somewhat more elaborate answer, but no luck. Let&#039;s say it&#039;s a gut-feeling that&#039;s driving me away from JS...&lt;br /&gt;&lt;br /&gt;Aglet: Thanks for the kind feedback! I&#039;ll post more as I run into things...]]></description>
		<content:encoded><![CDATA[<p>Mathieu: Well, my personal reasons are that weird stuff keeps happening in Javascript&#8230; I&#39;ve been trying to come up with a somewhat more elaborate answer, but no luck. Let&#39;s say it&#39;s a gut-feeling that&#39;s driving me away from JS&#8230;</p>
<p>Aglet: Thanks for the kind feedback! I&#39;ll post more as I run into things&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aglet</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-48</link>
		<dc:creator><![CDATA[Aglet]]></dc:creator>
		<pubDate>Fri, 11 Dec 2009 12:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-48</guid>
		<description><![CDATA[The IEnumerator part took me days to figure out. If only I&#039;d had this!&lt;br /&gt;&lt;br /&gt;Keep up the awesome explanations, they&#039;re great reference material.]]></description>
		<content:encoded><![CDATA[<p>The IEnumerator part took me days to figure out. If only I&#39;d had this!</p>
<p>Keep up the awesome explanations, they&#39;re great reference material.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathieu</title>
		<link>http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2.html#comment-47</link>
		<dc:creator><![CDATA[Mathieu]]></dc:creator>
		<pubDate>Fri, 11 Dec 2009 09:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://blackish.at/blog/2009/12/unity-making-the-switch-from-js-to-c-part-2/#comment-47</guid>
		<description><![CDATA[It&#039;s a welcomed introduction! But what&#039;s the real interest in switching to C#?]]></description>
		<content:encoded><![CDATA[<p>It&#39;s a welcomed introduction! But what&#39;s the real interest in switching to C#?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
