Case studies

Eight Unity problems, Each with step-by-step solutions.

Each card contains one problem I have solved inside Unity. Open it to see the fix, step by step.

These are examples of the systems I work on in client projects: turn logic, input, multiplayer, performance, effects, and plugins.

Why is my attack system not going in order after ending a turn in Unity?

Attacks fired from events can run all at once or out of order when a turn ends. Queuing each attack as a struct and running them one at a time means the next attack only starts when the last one finishes, so the order is always the same.

How do I create a unique controller layout in Unity?

Unity's Input System separates what a player does from the button that does it. Because your game reads actions instead of specific buttons, you can build any layout without rewriting gameplay code.

How do I create a server room using PUN 2 in Unity?

A PUN 2 room is how players share one session through Photon's servers. Connecting to the Master Server and calling JoinOrCreateRoom puts players in an existing room, or makes one if none is open, so you never have to manage room lists by hand.

How do I preload 1,000+ objects using DOTS in Unity?

Creating 1,000+ objects one at a time causes slowdowns and frame spikes. Creating them as a batch in DOTS up front, then switching visibility on and off, moves that cost out of gameplay and into loading.

How do I decrease Physics usage in Unity?

Physics objects far from the player still cost performance when they are simulated. Making them kinematic outside a trigger range stops that work, and turning physics back on when the player gets close keeps them behaving normally where it matters.

How do I add VFX with blood splatters on hit in Unity?

Blood that always faces one direction looks fake. Spawning the effect at the contact point and aligning it to the hit direction makes it look like it came from the strike, and letting it play once then destroy itself keeps effects from piling up.

How do I create a Leaderboard in Unity Web Build using Firebase?

Firebase's Unity SDK does not officially support WebGL builds, so the game talks to Firebase through JavaScript on the page instead. The Realtime Database stores the scores, and App Check helps block requests that don't come from your real game.

How do I create custom plugins to add to a ready made asset script in Unity?

Editing a purchased asset's own scripts means your changes can be lost when the asset updates. Inheriting from its base class and overriding functions adds your behavior from outside, and because the asset calls those functions through the base class, your version runs automatically.

Have a Unity problem like one of these? Send the details and I will send back a scope and a price.

Start a project