Taking screenshots with transparent background on runtime in Unity

I’ll start with a bit of context;

I’m building a game where players can collect and train different characters.

The characters are randomly generated based on random sets of modular parts (heads, hair, torso, hip, arms, legs, etc) and can also equip a ton of equipment (helmet, armors, etc). I’m using the great Synty Studio “Fantasy Modular Hero” asset.

Characters can also improve their “rank”, which is shown as the background color (see preview at the end).

I cannot simply create avatars beforehand for every possible combination and I want to make sure the build size remains as small as possible, so I need to generate them dynamically during runtime.

Learn More