Case study 05 · Love Eden · United Tech · 2025
A cosmetic system with three ways to pay and a bounded memory cost
The only place in the game where a player spends on themselves rather than on a character. Free, gem-priced, ad-unlocked and real-money themed sets, on one screen serving three different product moments.
- My role
- Senior Unity Developer. Designed, built and maintained this system.
- Constraint
- Hundreds of authored assets, a first-run flow that must never dead-end, saves that reference items by ID
- Outcome
- A repeatable LiveOps revenue beat; past events stay sellable instead of dying with their window
- Stack
- C#StrangeIoCAddressablesUnity IAPScriptableObjectsAmplitude
The problem
An avatar is built from five slots, each drawing on its own authored catalog, split by gender. Every option is separate art rather than a tint or a palette entry, so the asset count grows with every hairstyle in every colour. A single category can hold forty items and each one needs two sprites: the one worn on the avatar and the thumbnail in the picker.
On top of that, the same screen has to serve three different product moments. It is the profile's change-your-look surface, the first-time avatar creation during onboarding, and a quick dress-up beat just before a date. Those three want different content, different payment rules and different memory budgets.
What I built
One screen with three flows. The default flow exposes everything: all categories, all payment types, the gem cart and the event tab. The first-run flow is restricted to free content only, deliberately, because a first session must never end in a "you cannot afford this" state. The pre-date flow shows hair and outfit and nothing else.
The two sprites per option are separate assets loaded and released independently, which is what keeps a forty-item category from costing forty full-resolution character sprites to browse. Onboarding assets are explicitly released when the first-run flow ends, so the first-session memory peak does not follow the player into the rest of the app.
Items are free, gem-priced, or unlocked by watching a rewarded ad. Gem items are not bought one at a time: the player queues up to five, sees a running total, and buys the selection in one transaction. That cart exists only in the default flow.
The commercial layer is the wardrobe. During an event, a themed set of coordinated pieces sells as a single real-money purchase, and a successful purchase immediately dresses the avatar so the player sees what they paid for. Sets from finished events stay purchasable through an all-sets tab, so a themed look does not have to die with its window, and unowned pieces from an ended event are hidden from the normal grid so they do not look free. Once every set in an event is owned, that event comes off sale and stops occupying a shop slot.
Decisions and trade-offs
A set is a sales wrapper, not an inventory object
instead of storing the set as the owned thing and resolving pieces from it
After purchase the pieces are written into the normal purchased-items list exactly as if they had been bought individually, with a separate record of which sets were bought so the shop does not sell one twice. That means a set piece behaves like any other item: it mixes with non-set items, can be worn partially, and appears in its own category. Modelling the set as an object would have made every one of those a special case.
Two sprites per option, loaded and released independently
instead of one asset serving both the avatar and the picker
A picker thumbnail and a worn character sprite have nothing in common but the subject. Sharing one asset means either browsing at full resolution or wearing at thumbnail resolution, and the first one is how a cosmetic screen ends up as the memory peak of the whole app.
Removing the runtime colour system rather than repairing it
instead of leaving the dead code and the colour asset in place
An earlier design tinted hair at runtime and drove skin tone from a shared colour table. Nothing read it any more, the shader component was unused and the save format had no colour field, but the asset still sat there looking authoritative. Deleting it was the easy half. The half that mattered was writing down the consequence for whoever plans content next: a hairstyle in four colours is four assets with four IDs, not one asset and a palette. Colours are not free, and a roadmap built on the opposite assumption would have failed quietly.
The first-run flow shows only free content
instead of showing everything and letting the player discover the paywall
The first thing a new player does is build their avatar. Ending that on a price they cannot pay is a bad first impression in exchange for a purchase they were never going to make in session one.
Published item IDs are never reused, even after deletion
instead of recycling IDs from removed content
Saves reference items by ID, so reusing one silently turns a player’s purchased item into a different item. This is currently enforced by discipline rather than tooling, which is the part of it I am least happy with.
Result
Three revenue paths on one surface, and a themed set drop became a repeatable beat that ships with each seasonal event instead of a bespoke feature each time. The set funnel is instrumented end to end: impression, purchase started, completed, failed with a reason bucket, and equipped.
One honest note for whoever reads that data. Because a successful purchase auto-equips the set, the equipped count structurally includes automatic equips alongside deliberate ones, and the two are not currently distinguished. Revenue is reported by the purchase event rather than by this funnel, so the money is right; the intent signal is the part to treat carefully.
This describes architecture and the reasoning behind it. No employer source code is reproduced here.
Building something that has to stay up after launch?