<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - XNA and Unity3D developers unite! UnityXNA</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA/RSS"></atom:link>
	<image>
		<url>http://files.channel9.msdn.com/thumbnail/cbc55188-4cf8-41fd-8b19-75649075e24f.png</url>
		<title>Channel 9 - XNA and Unity3D developers unite! UnityXNA</title>
		<link></link>
	</image>
	<description>You all know I have a soft spot in my heart for XNA. Since it first came out and let me create games for my XBox 360, I&#39;ve been a fanboy of it. You also know that I&#39;m a fanboy of gaming engines, like Unity3D. So when I saw the two mixed in this proof of concept, a example of running XNA inside of Unity3D (let alone that the Platformer Sample was used), well... Announcing UnityXNA – XNA Inside Unity3DI had a theory that it would be straightforward to get XNA games running in Unity3D so I decided to give it a go. This is a proof of concept showing the Platformer XNA sample running inside Unity3D. Zero code changes have been made to the original game code. Using a mixture of new code and some code from MonoXNA I’ve implemented XNA emulation by having a game object with a script attached run an XNA game performing updates and drawing. You can see the game in your browser here and download the source here. Implemented so far: Basic game loop and GameTime calculation. ContentManager loads Texture2Ds, SoundEffects and Songs, each wrapping the relevant Unity3D object. SpriteBatch Draw implemented using a draw queue, specifically created for the purpose. Currently supports colour tinting, source rectangles, and sprite effect flip modes. SpriteBatch DrawString has limited support, rendering the text in the correct position and with the correct colour. Support for playing Songs through MediaPlayer and playing SoundEffects KeyboardStates emulated for a limited set of keys which are mapped from their XNA values to Unity3D KeyCodes. Zero code changes to the game needed to run Platformer sample Known issues, immediate areas for improvement: SpriteFont is not supported, all DrawStrings render with the default GUI Label font. Frame rate is currently vsync’d at 60 frames per second. When vsync is disabled GameTime is not calculated correctly. Windows Media Audio (.wma) is not supported by Unity3D, so I’ve converted the sample audio files to Ogg Vorbis (.ogg). Keyboard input is currently limited to a small set of keys, more mappings between XNA Keys and Unity3D KeyCodes need creating. Mouse, gamepad and touch input are not currently implemented. If you&#39;re interested in seeing how it&#39;s done, check out the source on Github here. If you just want to see it work, via the Unity3D Web Player, check it out here. </description>
	<link></link>
	<language>en</language>
	<pubDate>Sun, 19 May 2013 08:07:22 GMT</pubDate>
	<lastBuildDate>Sun, 19 May 2013 08:07:22 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: XNA and Unity3D developers unite! UnityXNA</title>
		<description>
			<![CDATA[Wow, please continue with this. This would make it much easier to port XNA games.<p>posted by Eric Y</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634811151439466514</link>
		<pubDate>Tue, 21 Aug 2012 03:05:43 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634811151439466514</guid>
		<dc:creator>Eric Y</dc:creator>
	</item>
	<item>
		<title>Re: XNA and Unity3D developers unite! UnityXNA</title>
		<description>
			<![CDATA[This looks good &#33; Can you convert a Unity3d game into XNA as well with this &#63;<p>posted by Mark</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634812862073494871</link>
		<pubDate>Thu, 23 Aug 2012 02:36:47 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634812862073494871</guid>
		<dc:creator>Mark</dc:creator>
	</item>
	<item>
		<title>Re: XNA and Unity3D developers unite! UnityXNA</title>
		<description>
			<![CDATA[<p>@<a href="/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634812862073494871?areaType=Blogs&amp;areaName=Coding4FunBlog">Mark</a>: No, I don't believe so</p><p>posted by gduncan411</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634813230185682495</link>
		<pubDate>Thu, 23 Aug 2012 12:50:18 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634813230185682495</guid>
		<dc:creator>gduncan411</dc:creator>
	</item>
	<item>
		<title>Re: XNA and Unity3D developers unite! UnityXNA</title>
		<description>
			<![CDATA[Checkout https&#58;&#47;&#47;github.com&#47;fehaar&#47;FFWD for that.<p>posted by Chad</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634850677182345995</link>
		<pubDate>Fri, 05 Oct 2012 21:01:58 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634850677182345995</guid>
		<dc:creator>Chad</dc:creator>
	</item>
	<item>
		<title>Re: XNA and Unity3D developers unite! UnityXNA</title>
		<description>
			<![CDATA[Hi, this is what I was looking for &#58;&#41;<br>I have a finished project in XNA but I want to run it in Unity3D.<br>Can you explain a little more how I import my project to Unity and how to structure the files&#63;<br><br>thanks so much<p>posted by Bender</p>]]>
		</description>
		<link>http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634877117352218372</link>
		<pubDate>Mon, 05 Nov 2012 11:28:55 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/coding4fun/blog/XNA-and-Unity3D-developers-unite-UnityXNA#c634877117352218372</guid>
		<dc:creator>Bender</dc:creator>
	</item>
</channel>
</rss>