A Unity inventory system with ScriptableObjects
Items as ScriptableObject assets, slots as plain C#, stacking and splitting in two methods, and saves that still load after you rename or delete an item.
Read
The blog
Unity tutorials, devlogs and lessons from shipping mobile games solo: the code that worked, the mistakes that didn’t, and how to skip them.
Showing 8 articles
Items as ScriptableObject assets, slots as plain C#, stacking and splitting in two methods, and saves that still load after you rename or delete an item.
Read
How Bowling Puzzle: 3D Illusions rolls a ball between pieces that only line up from one angle: one camera ray, a pixel budget and levels built from the answer.
Read
Split the map until the pieces are room-sized, put a room in each, join every split with a corridor, and use a seed so one number always gives one dungeon.
Read
Unity has shipped a generic object pool since 2021. How to use UnityEngine.Pool properly: prewarming, resetting state, and the one mistake that corrupts a pool.
Read
Three numbers decide whether an on-screen joystick feels sharp or mushy: the dead zone, the travel radius and where the stick’s centre sits.
Read
A change to your save format can wipe a player’s progress. A version number, one migration step per version and a safe write stop it from ever happening.
Read
A finite state machine in plain C#: patrol, chase and search as small classes, with every transition in one place. No behaviour tree required.
Read
Target API level, app bundles, testing the upgrade path, Android vitals and staged rollouts: the checks that stand between a solo developer and a one-star week.
Read