Taking screenshots with transparent background on runtime in Unity
<p>I’ll start with a bit of context;</p>
<p>I’m building a game where players can collect and train different characters.</p>
<p>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 <a href="https://assetstore.unity.com/packages/3d/characters/humanoids/fantasy/polygon-modular-fantasy-hero-characters-low-poly-3d-art-by-synty-143468" rel="noopener ugc nofollow" target="_blank">Synty Studio “Fantasy Modular Hero” asset</a>.</p>
<p>Characters can also improve their “rank”, which is shown as the background color (<em>see preview at the end</em>).</p>
<p>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.</p>
<p><a href="https://medium.com/@nacheina/taking-screenshots-with-transparent-background-on-runtime-in-unity-e8574e80b3d7"><strong>Learn More</strong></a></p>