<?xml version="1.0" encoding="utf-8"?><!--generator="snapluxBlog/0.1"-->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>hanfordlemoore.com | blog</title>
	<link>http://hanfordlemoore.com</link>
	<description>User interface design, game design, game programming, and assorted miscellany</description>
	<lastBuildDate>Mon, 04 May 2026 10:59:48 +0000</lastBuildDate> 
	<generator>http://hanfordlemoore.com</generator>
	<language>en</language>

	<item>
		<title>Method for crawling the Hierarchy in Unity</title>
		<link>http://hanfordlemoore.com/v/method-for-crawling-the-hierarchy-in-unity</link>
		<comments>http://hanfordlemoore.com/v/method-for-crawling-the-hierarchy-in-unity#comments</comments>
		<pubDate>2012-05-30 17:21:53</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/478</guid>
		<description><![CDATA[This is a quick post to point out to iterate through the entire Hierarchy&nbsp;in Unity.&nbsp;This is something I've wanted to be able to do for a long time, but didn't know how to do in Unity. &nbsp;I had asked a lot of Unity experts and everyone ... [<a href="http://hanfordlemoore.com/v/method-for-crawling-the-hierarchy-in-unity">more</a>]]]></description>
		<content:encoded><![CDATA[<p>This is a quick post to point out to iterate through the entire Hierarchy&nbsp;in Unity.&nbsp;This is something I've wanted to be able to do for a long time, but didn't know how to do in Unity. &nbsp;I had asked a lot of Unity experts and everyone told me it was possible, but couldn't tell me how.&nbsp;</p>
<pre>for (var go : GameObject in FindObjectsOfType(GameObject))
	{
	// do whatever you need to do here.
	}


</pre>
<p>&nbsp; &nbsp;This seems pretty strightforward, but I guess I never thought to look for a type of "gameobject." Anyway, I thought I'd share.</p>
<p>&nbsp;</p>]]></content:encoded>
	</item>
	<item>
		<title>My Molyjam game: PH S CT X</title>
		<link>http://hanfordlemoore.com/v/my-molyjam-game-ph-s-ct-x</link>
		<comments>http://hanfordlemoore.com/v/my-molyjam-game-ph-s-ct-x#comments</comments>
		<pubDate>2012-04-11 17:45:40</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/477</guid>
		<description><![CDATA[Although I am hard at work on Maquette, I took a break to jam with fellow San Franicso indie devs for MolyJam2012. My efforts resulted in:&nbsp;
 ... [<a href="http://hanfordlemoore.com/v/my-molyjam-game-ph-s-ct-x">more</a>]]]></description>
		<content:encoded><![CDATA[<p>Although I am hard at work on <a href="http://maquettegame.com">Maquette</a>, I took a break to jam with fellow San Franicso indie devs for <a href="http://www.whatwouldmolydeux.com/">MolyJam2012</a>. My efforts resulted in:&nbsp;</p>
<h3><a href="http://www.whatwouldmolydeux.com/display.php?GameID=229">PH S CT X: The Invisible FPS</a></h3>
<p>It's based around the following tweet:</p>
<p style="padding-left: 30px;"><span><a href="http://t.co/rQHCnEzr">Would love to make a corridor shooter but where all walls are invisible. Constantly worrying if that enemy has open space to aim at you.</a></span></p>
<p>I think I spent about 14 hours on it. Bill Kiley wrote the music and graciously gave it to the game. &nbsp;Enjoy!</p>
<p>&nbsp;</p>
<p><a href="http://www.whatwouldmolydeux.com/display.php?GameID=229"><img src="http://www.whatwouldmolydeux.com/uploads/229/game_thumb.jpg" alt="" width="320" height="200" /></a></p>]]></content:encoded>
	</item>
	<item>
		<title>Proactive visuals for inspiration</title>
		<link>http://hanfordlemoore.com/v/proactive-visuals-for-inspiration</link>
		<comments>http://hanfordlemoore.com/v/proactive-visuals-for-inspiration#comments</comments>
		<pubDate>2012-03-07 02:28:28</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/476</guid>
		<description><![CDATA[I gave a GDC talk titled "Proactive Visuals for Inspiration" at GDC 2012, and I wanted to post a bit about great sources for images like the ones I showed.&nbsp;
First off, I invite everyone who is interested to browse ima ... [<a href="http://hanfordlemoore.com/v/proactive-visuals-for-inspiration">more</a>]]]></description>
		<content:encoded><![CDATA[<p>I gave a GDC talk titled "<strong>Proactive Visuals for Inspiration</strong>" at GDC 2012, and I wanted to post a bit about great sources for images like the ones I showed.&nbsp;</p>
<p>First off, I invite everyone who is interested to browse images and suggest your own images at:&nbsp;</p>
<p><span style="font-size: medium;"><a href="http://reddit.com/r/visualinspiration">http://reddit.com/r/visualinspiration</a></span></p>
<p>I intend this to be a great place for designers and programmers to share their favorite images and to be inspired.&nbsp;</p>
<p>I also wanted to share more infomation about the images I showed in the presentation:&nbsp;</p>
<h2>Soviet monument</h2>
<p>The sovient monument I showed is part of a series of monunements, <a href="http://www.cracktwo.com/2011/04/25-abandoned-soviet-monuments-that-look.html">a ton of which can be found here</a>.&nbsp;</p>
<h2><strong>Street art</strong></h2>
<p>The colorful mural was from Matt W Moore, and <a href="http://www.lostateminor.com/2011/06/23/matt-w-moore/">you can find the piece I showed here</a>. Check out an <a href="https://www.google.com/search?q=matt%20w%20moore&amp;um=1&amp;ie=UTF-8&amp;hl=en&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;biw=1333&amp;bih=621&amp;sei=tTRXT_jpIOPYiQK9zc3iDg">image search</a> for even more great pieces from him.&nbsp;</p>
<h2>Giant marionettes</h2>
<p>The giant marionettes are from the Royal De Luxe theatre company, and there is a <a href="https://www.google.com/search?q=royal%20de%20luxe&amp;um=1&amp;ie=UTF-8&amp;hl=en&amp;tbm=isch&amp;source=og&amp;sa=N&amp;tab=wi&amp;biw=1333&amp;bih=621&amp;sei=_TRXT6qgFseSiAKW3qjLCw">ton of great images</a>&nbsp;and also <a href="http://www.youtube.com/results?search_query=royal+de+luxe&amp;page=&amp;utm_source=opensearch">video</a>.&nbsp;&nbsp;</p>
<h2>Gas mask armageddon preparedness society</h2>
<p>I can't find the source for this image, <a href="http://i.imgur.com/BZXmj.jpg">but I've hosted it here.</a>&nbsp;</p>
<p>&nbsp;</p>
<h2>Futuristic boxed apartments</h2>
<p><a href="https://www.google.com/search?um=1&amp;hl=en&amp;safe=off&amp;biw=1333&amp;bih=621&amp;tbm=isch&amp;sa=1&amp;q=habitat+67&amp;oq=habitat+67&amp;aq=f&amp;aqi=g10&amp;aql=&amp;gs_sm=3&amp;gs_upl=19269l19616l0l19948l2l2l0l0l0l0l53l105l2l2l0&amp;gs_l=img.3..0l10.19269l19616l0l19948l2l2l0l0l0l0l53l105l2l2l0">The building is called Habitat 67</a> from the &nbsp;Expo 67 World's Fair in Montreal.&nbsp;</p>
<p>&nbsp;</p>
<h2>Recursion comic</h2>
<p>The recursive comic is called <a href="http://pbfcomics.com/94">Freaking Vortex</a> and comes from <a href="http://pbfcomics.com/">the Perry Bible Fellowship</a>.&nbsp;</p>]]></content:encoded>
	</item>
	<item>
		<title>Save game thoughts for Unity</title>
		<link>http://hanfordlemoore.com/v/save-game-thoughts-for-unity</link>
		<comments>http://hanfordlemoore.com/v/save-game-thoughts-for-unity#comments</comments>
		<pubDate>2011-11-22 14:47:55</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/475</guid>
		<description><![CDATA[There's a lot of ways Unity could be improved for savegames. here's some of my thoughts on that.&nbsp;
I think the big one is to save a scene (and reload it) during playback.&nbsp;It's clear the editor has this power in so ... [<a href="http://hanfordlemoore.com/v/save-game-thoughts-for-unity">more</a>]]]></description>
		<content:encoded><![CDATA[<p>There's a lot of ways Unity could be improved for savegames. here's some of my thoughts on that.&nbsp;</p>
<p>I think the big one is to <strong>save a scene (and reload it) during playback.</strong>&nbsp;It's clear the editor has this power in some fashion already, and it would be hugely useful for many types of games.&nbsp;</p>
<p>But I know that's no small task. So, besides that, there's a ton that Unity could include, like:&nbsp;</p>
<p><strong>More data types for PlayerPrefs.</strong> The abllity to save arrays, for example. See EasySave on the asset store for a good third party solution for this.</p>
<p><strong>Unique GameObject IDs that are static</strong>. When you save data associated with an object, you need to uniquely identify the object. GetInstanceID is a unique id for each object, but they can change every time you load the scene. <a href="../v/unity-simple-state-save-for-pick-up-objects-in-games">I came up with a simple hack for powerups</a>, but there should be a better way, especially since Unity's own way of saving data (PlayerPrefs) requires unique keys.&nbsp;</p>
<p><strong>An automated way to load and save a script's current properities</strong>. Right now, you need to write your own saver and loader&nbsp;<em>for every single variable in your script</em>. Add a variable? Add some code to saver. And don't forget your loader. &nbsp;This is error-prone, and this should be automated. It's clear that the property editor has automated access to all the script's variables, so why not give us a way to bundle it up and save it and load it? It wouldn't have to work for everything (I understand the problems with saving transforms and whatnot) but just letting us save all integers, floats, and strings would save a ton.&nbsp;</p>
<p>And if not that, at least give us a way to walk through them ourselves so we could roll our own autmated saver that doesn't require me hand-adding variables to save every time I change my script. There would still be the need for special-casing things, but this would be a great head start.</p>
<p><span style="color: #591474; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold;">Summary</span></p>
<p>I know there's no way for Untiy Technologies to make the perfect SaveMyGame() feature that would work for every game out there, but really Unity needs more than what it has at the moment. It's almost non-existant. &nbsp;In other game development environments, I'd have the tools to say "these variables are going to be saved." and then that's the end of it.&nbsp;</p>
<p>Currently, for any game this isn't dead simple, SaveGame is one of the first things I need to think about -- and think hard about -- before I do any fundimental development. &nbsp;And that's typically not what Unity's about. Unity is about focusing on your game, and not your engine.&nbsp;</p>]]></content:encoded>
	</item>
	<item>
		<title>My custom My Little Pony</title>
		<link>http://hanfordlemoore.com/v/my-custom-my-little-pony</link>
		<comments>http://hanfordlemoore.com/v/my-custom-my-little-pony#comments</comments>
		<pubDate>2011-09-30 13:38:12</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/474</guid>
		<description><![CDATA[While in Hawaii working on custom games for Disney's Aulani hotel, I had a hairbrained idea to trick out a My Little Pony with a custom paint job. The thought wouldn' ... [<a href="http://hanfordlemoore.com/v/my-custom-my-little-pony">more</a>]]]></description>
		<content:encoded><![CDATA[<p>While in Hawaii working on custom games for <a href="http://resorts.disney.go.com/aulani-hawaii-resort/" target="_blank">Disney's Aulani hotel</a>, I had a hairbrained idea to trick out a My Little Pony with a custom paint job. The thought wouldn't go away, and eventually I had to do something about it. So I got a hold of an albino My Little Pony and tricked and went all Xzibit&nbsp;on her.</p>
<p>At the time I had no clue that My Little Pony had had a resurgence. Here are the results.&nbsp;</p>
<p><img title="My Little Pony - Hanford Lemoore" src="http://images.hanfordlemoore.com/my-little-pony-002.jpg" alt="My Little Pony - Hanford Lemoore" /></p>
<p><img title="My Little Pony - Hanford Lemoore" src="http://images.hanfordlemoore.com/my-little-pony-001.jpg" alt="My Little Pony - Hanford Lemoore" /></p>
<p><img title="My Little Pony - Hanford Lemoore" src="http://images.hanfordlemoore.com/my-little-pony-003.jpg" alt="My Little Pony - Hanford Lemoore" /></p>
<p><img title="My Little Pony - Hanford Lemoore" src="http://images.hanfordlemoore.com/my-little-pony-004.jpg" alt="My Little Pony - Hanford Lemoore" /></p>]]></content:encoded>
	</item>
	<item>
		<title>Batch GameObject renaming tool for Unity</title>
		<link>http://hanfordlemoore.com/v/batch-gameobject-renaming-tool-for-unity</link>
		<comments>http://hanfordlemoore.com/v/batch-gameobject-renaming-tool-for-unity#comments</comments>
		<pubDate>2011-09-16 12:24:40</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/473</guid>
		<description><![CDATA[Silly that Unity doesn't support this. Uses the name of the first GO selected (the one in the inspector) to rename the rest of them. This is actually a great template for all sorts of batch editor commands in Unity.
Here it is in  ... [<a href="http://hanfordlemoore.com/v/batch-gameobject-renaming-tool-for-unity">more</a>]]]></description>
		<content:encoded><![CDATA[<p>Silly that Unity doesn't support this. Uses the name of the first GO selected (the one in the inspector) to rename the rest of them. This is actually a great template for all sorts of batch editor commands in Unity.</p>
<p>Here it is in <a href="http://pastebin.com/gkBSMFcS">pastebin</a>.&nbsp;</p>
<pre>.<p>&nbsp;</p>
<pre>@MenuItem ("Maquette/Batch Rename")
static function BatchRename() 
	{ // Renames all selected items in the Hierarchy to the first item selected, with numbers.
	var iname : String;
	ispacer = "0"; 
    icount = 0; 
	iname = Selection.activeGameObject.name;   // The item in the inspector
	
	istuff = Selection.gameObjects.length;  // if I wanted this to support renaming of &gt; 99 objects correctly, I'd use this. 
	
	for (igo in Selection.gameObjects)
		{
		icount ++; 
		if (icount &gt; 9) ispacer = ""; 
		igo.name =iname + "-" + ispacer + icount; 
		}
	}
</pre>
</pre>]]></content:encoded>
	</item>
	<item>
		<title>Making crafting discoverable</title>
		<link>http://hanfordlemoore.com/v/making-crafting-discoverable</link>
		<comments>http://hanfordlemoore.com/v/making-crafting-discoverable#comments</comments>
		<pubDate>2011-08-11 12:44:13</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/472</guid>
		<description><![CDATA[One interesting idea I had while on the river was an RPG with crafting (ala minecraft) but your character has an "ingenuity" stat. &nbsp;This stat reflects how McGuyvery you are. But game mechanic-wise, what it does is affects "hints" when craftin ... [<a href="http://hanfordlemoore.com/v/making-crafting-discoverable">more</a>]]]></description>
		<content:encoded><![CDATA[<p>One interesting idea I had while on the river was an RPG with crafting (ala minecraft) but your character has an "ingenuity" stat. &nbsp;This stat reflects how McGuyvery you are. But game mechanic-wise, what it does is affects "hints" when crafting.</p>
<p><br />How I imagine it is you can place objects into the crafting table, and depending on your ingenuity stat, you may see some spots around the item you place light up slightly. Rolling over these lit up spots, you may see items in your inventory highlighted. &nbsp;This is giving you hints of how new crafting recipes can be discovered. This is an in-game approximation for having your character have insight into how things are built and how they can be put together.</p>
<p><br />The idea is that with low ingenuity, the highlights don't appear for some recipes, and when they highlight objects, they highlight "fuzzy" -- meaning it may highlight false positives in your inventory, or not highlight others. As your ingenuity increases, these fuzzy recipes get more defined, and new highlights start to appear for new recipes. &nbsp;Each recipe has it's own skill level, so easy and basic things appear first, with more complex recipes appearing with higher ingenuity. Not all recipes would appear this way -- some could only be learned via wall carvings or parchments, etc.&nbsp;</p>
<p><br />Ingeunuty, or perhaps another stat like "skill", may keep you from successfully building complex items (keeping people from looking up the reciipe online and buliding things their character couldn't have otherwise known about)</p>]]></content:encoded>
	</item>
	<item>
		<title>What I'm looking forward to NOT installing on my next PC</title>
		<link>http://hanfordlemoore.com/v/what-im-looking-forward-to-not-installing-on-my-next-pc</link>
		<comments>http://hanfordlemoore.com/v/what-im-looking-forward-to-not-installing-on-my-next-pc#comments</comments>
		<pubDate>2011-08-08 16:34:27</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/471</guid>
		<description><![CDATA[
Adobe reader - Chrome displays PDF perfectly; no plug-in needed
Quicktime / itunes - Quicktime is pretty much ONLY needed for viewing videos on Apple.com, and nowhere else.&nbsp;
 ... [<a href="http://hanfordlemoore.com/v/what-im-looking-forward-to-not-installing-on-my-next-pc">more</a>]]]></description>
		<content:encoded><![CDATA[<ul>
<li><strong>Adobe reader</strong> - Chrome displays PDF perfectly; no plug-in needed</li>
<li><strong>Quicktime / itunes</strong> - Quicktime is pretty much ONLY needed for viewing videos on Apple.com, and nowhere else.&nbsp;</li>
<li><strong>Microsoft Office</strong> - Google Docs's pluses greatly outweigh the bells and whistles of the Office suite.&nbsp;</li>
<li><strong>IM clients</strong> - the web based ones are great.&nbsp;</li>
</ul>]]></content:encoded>
	</item>
	<item>
		<title>Unity Inventory Question</title>
		<link>http://hanfordlemoore.com/v/unity-inventory-question</link>
		<comments>http://hanfordlemoore.com/v/unity-inventory-question#comments</comments>
		<pubDate>2011-08-06 21:43:52</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/470</guid>
		<description><![CDATA[So I want to have a pickup that exists in the world, and when you pick it up, it goes into your inventory. My question is, what's the best way to represent this in Unity?

Ideally I'd like this inventory item to be a prefab tha ... [<a href="http://hanfordlemoore.com/v/unity-inventory-question">more</a>]]]></description>
		<content:encoded><![CDATA[<p>So I want to have a pickup that exists in the world, and when you pick it up, it goes into your inventory. My question is, what's the best way to represent this in Unity?</p>
<!--more-->
<p>Ideally I'd like this inventory item to be a prefab that I can drop in the world. That's all well and good, but my issue comes up when the player picks it up.&nbsp;</p>
<p>When it's in the player's inventory, there's no object in the world anymore, its just stored in an array for inventory objects. &nbsp;Of course, if the player drops it, it will again be in the world.&nbsp;</p>
<p>This *feels* like it will use two different kinds of objects, a GO with a mesh (etc) and a non-mesh object (not sure what that's called?) when it's in your inventory. BUT I DONT LIKE THIS ROUTE. It doesn't feel right to me. &nbsp;Id prefer it to be one thing, although, if I can't have it that way, I understand.&nbsp;</p>
<p>Any suggestions on how to handle this?</p>]]></content:encoded>
	</item>
	<item>
		<title>Free association Maquette sketch</title>
		<link>http://hanfordlemoore.com/v/free-association-maquette-sketch</link>
		<comments>http://hanfordlemoore.com/v/free-association-maquette-sketch#comments</comments>
		<pubDate>2011-06-13 18:02:00</pubDate>
		<dc:creator>Hanford Lemoore</dc:creator>
		<guid isPermaLink="true">http://hanfordlemoore.com/v/468</guid>
		<description><![CDATA[Some people have a hard time sketching in their sketchbooks, for fear of drawing something crappy in it. Fortunately, I'm an expert at crappy drawings. The tag crappy drawings documents them.
&nb ... [<a href="http://hanfordlemoore.com/v/free-association-maquette-sketch">more</a>]]]></description>
		<content:encoded><![CDATA[<p><em>Some people have a hard time sketching in their sketchbooks, for fear of drawing something crappy in it. Fortunately, I'm an expert at crappy drawings. The tag <a href="../o/crappy+drawings">crappy drawings</a> documents them.</em></p>
<p>&nbsp;</p>
<p><img title="maquette-sketches - Hanford Lemoore" src="http://images.hanfordlemoore.com/maquette-sketches.jpg" alt="maquette-sketches - Hanford Lemoore" /></p>
<p>This is a free association sketch I did while brainstorming on Maquette. Note the simplified dome in the middle of the image.</p>
<p>I do a lot of free association drawing. it's just like free association writing, except for I'm drawing. But quite often I have no idea what I'm about to draw when I start. This is one of those cases. It's not about the quality of the sketch, or even the content. It's more about what my brain thinks of while I'm drawing it.&nbsp;</p>]]></content:encoded>
	</item>
</channel>
</rss>

