Devlog posts: unity

Counting allocations in Unity

Have you ever wondered how many heap allocations your C# code is making? Here’s a little class called AllocCounter that will help you do that. It’s pretty straightforward:

var ac = new AllocCounter();

// code that may or may not do allocations

var allocCount = ac.Stop();

If you like lambdas, you can use this style as well:

var allocCount = AllocCounter.Instrument(() => {
  // code that may or may not allocate
});
Keep Reading →

A 3D tile editor for Unity

There are lots of good tilemap editors you can use for 2D games, but it’s a different story for 3D.

For Stereo Boy, a game filled with grid-aligned cubes, we ended up writing a custom tool for 3D tile editing called Block Editor. Let’s take a look at how it works.

Keep Reading →

Making Stereo Boy's dual worlds

Stereo Boy’s core mechanic is the ability to teleport between two worlds on either side of the screen. This post is a breakdown of how we implemented this unusual feature, across our tools, runtime cameras, and gameplay effects. We took advantage of the flexibility of Unity’s editor and camera systems to meet our highly-specific needs.

Keep Reading →