Archive by Author

Faking Namespaces in Unity

Fake it until you make it. Or until somebody else makes it. — Alfred Mirek

Recently the devilishly handsome Nick Breslin asked about an alternative to namespaces in Unity. Namespaces are a familiar concept to C# programmers that solve the problem of naming collisions, but Unity has yet to support them. The documentation promises that this limitation “will be removed in a future version,” but don’t hold your breath. You need to breathe. (more…)

Leave a Comment

Unity Editor Macros

These make my life easier. Perhaps even more than the Slap Chop. — Captain William Henry Stuart

A feature that appeared briefly in a beta release of Unity 3.0, but which has since disappeared, is editor macros. The reason for the feature’s withdrawal is unclear. Presumably it’s simply unready for primetime, and will appear in a future version of Unity. Fortunately the ability to evaluate arbitrary code snippets in the editor is still available in the UnityEditor.Macros namespace, and taking advantage of it is easier than racing a sloth. (more…)

Leave a Comment

Cutscene Editor on GitHub

That’s the title of my favourite film! — André Bazin

A quick update regarding the Unity Cutscene Editor. (more…)

Leave a Comment

Web Page Click Prevention

I’ll click when I tell you to click. Or you’ll click when you tell me to click. One of those. — Pavel Maximovich Sokolov

While I’m admittedly desperate for ego-boosting website clicks, I’m currently working on a project where momentarily preventing the user from following links is desirable. (more…)

Leave a Comment

Easier Prefab Creation

This script literally rocks my raincoat. — Mary Baker Allen

At the request of fellow code conjuror Brad Keys, I wrote a simple editor script for Unity that creates a prefab containing the contents of the currently selected game object. (more…)

Leave a Comment