<?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"
	>
<channel>
	<title>Comments on: A Cocoa-Based Frontend For Unity iPhone Applications</title>
	<atom:link href="http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/</link>
	<description>Tips, tricks, and tutorials from our Unity development experience.</description>
	<pubDate>Fri, 12 Mar 2010 16:02:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Fra</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-225</link>
		<dc:creator>Fra</dc:creator>
		<pubDate>Sun, 17 Jan 2010 08:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-225</guid>
		<description>Thanks for sharing. The approach is working smoothly, the only problem is that when I'm back to cocoa from unity and I move the device orientation an animation that tries to rotate the device in landscape view is showing up. 

My application is configured in portrait in info.plist and View Controllers are all returning NO to shouldAutorotateToInterfaceOrientation.

Did you experience a similar issue or have any idea if the EAGLView could be the cause of the problem ?</description>
		<content:encoded><![CDATA[<p>Thanks for sharing. The approach is working smoothly, the only problem is that when I&#8217;m back to cocoa from unity and I move the device orientation an animation that tries to rotate the device in landscape view is showing up. </p>
<p>My application is configured in portrait in info.plist and View Controllers are all returning NO to shouldAutorotateToInterfaceOrientation.</p>
<p>Did you experience a similar issue or have any idea if the EAGLView could be the cause of the problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-104</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 04 Jun 2009 17:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-104</guid>
		<description>@bill
Right now the only way to pass a value from Cocoa to Unity is through PlayerPrefs/NSUserDefaults. FBPlayerPrefs file is a wrapper for NSUserDefaults to make it behave like PlayerPrefs in Unity. So you can do like:

[FBPlayerPrefs setInt:15 withKey:@“number_of_bunnies”]

Then within Unity, you would do like:

var numberOfBunnies:int = PlayerPrefs.GetInt("number_of_bunnies", 0);</description>
		<content:encoded><![CDATA[<p>@bill<br />
Right now the only way to pass a value from Cocoa to Unity is through PlayerPrefs/NSUserDefaults. FBPlayerPrefs file is a wrapper for NSUserDefaults to make it behave like PlayerPrefs in Unity. So you can do like:</p>
<p>[FBPlayerPrefs setInt:15 withKey:@“number_of_bunnies”]</p>
<p>Then within Unity, you would do like:</p>
<p>var numberOfBunnies:int = PlayerPrefs.GetInt(&#8221;number_of_bunnies&#8221;, 0);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bill</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-102</link>
		<dc:creator>bill</dc:creator>
		<pubDate>Wed, 03 Jun 2009 21:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-102</guid>
		<description>I just have a question ?How do I pass value from frontend to unity ?
When I type something to the form,how can I pass the string to unity and actually show the string on the unity view?Hope to get any of answers</description>
		<content:encoded><![CDATA[<p>I just have a question ?How do I pass value from frontend to unity ?<br />
When I type something to the form,how can I pass the string to unity and actually show the string on the unity view?Hope to get any of answers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-71</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 23 Feb 2009 15:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-71</guid>
		<description>@Matt - Thanks for the info. It turns out that the window i was getting back from unityController-&#62;_window was nil - which is why my content wasn't being added above the unity content.  It seems there is a global var in the AppController called _window, which is where the EAGLView is added.  The local _window was never being instantiated.  I deleted that reference altogether, and just added a function to return the global _window, and everything worked perfectly.  I'm not sure if i have a wrong version or something - i'm not sure what has changed from when you wrote the code to when i tried to implement :)

Thanks for the great work - it has helped a lot.</description>
		<content:encoded><![CDATA[<p>@Matt - Thanks for the info. It turns out that the window i was getting back from unityController-&gt;_window was nil - which is why my content wasn&#8217;t being added above the unity content.  It seems there is a global var in the AppController called _window, which is where the EAGLView is added.  The local _window was never being instantiated.  I deleted that reference altogether, and just added a function to return the global _window, and everything worked perfectly.  I&#8217;m not sure if i have a wrong version or something - i&#8217;m not sure what has changed from when you wrote the code to when i tried to implement <img src='http://technology.blurst.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the great work - it has helped a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Mechtley</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-66</link>
		<dc:creator>Matt Mechtley</dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-66</guid>
		<description>@Andy: Despite being able to technically create multiple windows in code, the iPhone really only lets you use one at a time. I ran into this problem myself, which is why the launchUnity: method has the line:
window = unityController-&gt;_window;
to reassign the local window pointer to the window that Unity creates.

Once a second window has been created, I couldn't find any way to get the original window to return to the front, so it's best to just treat it as though it's gone forever.

As for getting created views to add above the Unity content, by default subviews will always be added to the top of their superview/window. However, I'm not sure how well these play with the OpenGL EAGLView. That's why I set the Unity EAGLView to hidden in the launchFrontend: method.</description>
		<content:encoded><![CDATA[<p>@Andy: Despite being able to technically create multiple windows in code, the iPhone really only lets you use one at a time. I ran into this problem myself, which is why the launchUnity: method has the line:<br />
window = unityController->_window;<br />
to reassign the local window pointer to the window that Unity creates.</p>
<p>Once a second window has been created, I couldn&#8217;t find any way to get the original window to return to the front, so it&#8217;s best to just treat it as though it&#8217;s gone forever.</p>
<p>As for getting created views to add above the Unity content, by default subviews will always be added to the top of their superview/window. However, I&#8217;m not sure how well these play with the OpenGL EAGLView. That&#8217;s why I set the Unity EAGLView to hidden in the launchFrontend: method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-61</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 06 Feb 2009 16:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-61</guid>
		<description>Hey - This is a great technique.  I'm just getting into iPhone dev and this was just what i needed.  When i try to use it, however, i can't get subviews to be added above my unity content (nor is the unity subview ever found on the window).  I have to create a new window above the content instead.  Would you happen to know of any reason this might be the case?</description>
		<content:encoded><![CDATA[<p>Hey - This is a great technique.  I&#8217;m just getting into iPhone dev and this was just what i needed.  When i try to use it, however, i can&#8217;t get subviews to be added above my unity content (nor is the unity subview ever found on the window).  I have to create a new window above the content instead.  Would you happen to know of any reason this might be the case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Aiken</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-60</link>
		<dc:creator>Chris Aiken</dc:creator>
		<pubDate>Fri, 06 Feb 2009 02:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-60</guid>
		<description>Matt,

Great work! This should be a great help to extend Unity functionality. I, like Spocko, would love to play with the implementation of scene and scenemanager  as well. Look forward to the example project.

Again, thanks for taking the time and effort to share. Hope I can do the same someday.

Regards</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>Great work! This should be a great help to extend Unity functionality. I, like Spocko, would love to play with the implementation of scene and scenemanager  as well. Look forward to the example project.</p>
<p>Again, thanks for taking the time and effort to share. Hope I can do the same someday.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spocko</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-53</link>
		<dc:creator>Spocko</dc:creator>
		<pubDate>Sun, 01 Feb 2009 15:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-53</guid>
		<description>Very cool. I'll be looking forward to it.
I was able to use your code above to switch back and forth between cocoa and unity. Awesome.

Live long and prosper! ;o)</description>
		<content:encoded><![CDATA[<p>Very cool. I&#8217;ll be looking forward to it.<br />
I was able to use your code above to switch back and forth between cocoa and unity. Awesome.</p>
<p>Live long and prosper! ;o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Mechtley</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-52</link>
		<dc:creator>Matt Mechtley</dc:creator>
		<pubDate>Sun, 01 Feb 2009 05:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-52</guid>
		<description>@Spocko Yes -- I have a simple Unity project I'm putting together with all the necessities to demonstrate the whole setup and build process. I should have it up within the next week -- it will just be an amendment to this post.</description>
		<content:encoded><![CDATA[<p>@Spocko Yes &#8212; I have a simple Unity project I&#8217;m putting together with all the necessities to demonstrate the whole setup and build process. I should have it up within the next week &#8212; it will just be an amendment to this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spocko</title>
		<link>http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/#comment-51</link>
		<dc:creator>Spocko</dc:creator>
		<pubDate>Sat, 31 Jan 2009 16:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://technology.blurst.com/?p=103#comment-51</guid>
		<description>This is great stuff! Thanks very much for the lesson.
I'm still a n00b with mac/iphone/unity and was hoping I could get a look at the scene and scenemanager files. Could you please post these, too.

Thanks again for sharing!</description>
		<content:encoded><![CDATA[<p>This is great stuff! Thanks very much for the lesson.<br />
I&#8217;m still a n00b with mac/iphone/unity and was hoping I could get a look at the scene and scenemanager files. Could you please post these, too.</p>
<p>Thanks again for sharing!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
