From zero to 10,000 NFTs. A Unity developer learning Solana.

The scene is setup with a canvas and 5 RawImage components on children
static public Dictionary<string,int> Coats = new Dictionary<string,int>{
{"Dark Bay", 10},
{"Dun", 1238},
{"Black", 2014},
{"Chestnut", 2251},
{"Bay", 4477},
};
List<string> ListFromDictionary(Dictionary<string, int> dict)
{
List<string> retList = new List<string>();
foreach (var kvp in dict)
{
for (int i = 0; i < kvp.Value; i++)
{
retList.Add(kvp.Key);
}
}

System.Random rng = new System.Random();
var shuffled = retList.OrderBy(a => rng.Next()).ToList();
return shuffled;
}
for (int i = 0; i < 10000; i++)
{
var bg = backgrounds[i];
var face = faces[i];
var outfit = outfits[i];
var head = heads[i];
var coat = coats[i];
string uniqueId = $"{bg}_{face}_{outfit}_{head}_{coat}";
Debug.Log(uniqueId);
[SerializeField] private RawImage ImageBackground;
[SerializeField] private RawImage ImageCoat;
[SerializeField] private RawImage ImageOutfit;
[SerializeField] private RawImage ImageHead;
[SerializeField] private RawImage ImageFace;
ImageBackground.texture = Resources.Load<Texture2D>(imgPath + bg);
ImageFace.texture = Resources.Load<Texture2D>(imgPath + face);
ImageOutfit.texture = Resources.Load<Texture2D>(imgPath + outfit);
ImageHead.texture = Resources.Load<Texture2D>(imgPath + head);
ImageCoat.texture = Resources.Load<Texture2D>(imgPath + coat);
yield return new WaitForEndOfFrame();
string fileName = $"{i}.png";
ScreenCapture.CaptureScreenshot(Path.Combine("../export", fileName));
yield return new WaitForSeconds(.6f);
Load an image into each layer, snap a screenshot!

--

--

--

Game development studio with many years in AAA, mobile, and F2P. Crypto enthusiasts. Big fans of Unity.

Love podcasts or audiobooks? Learn on the go with our new app.

Parallel tests with Cypress.io + Circle CI + Github + Mochawesome report

String Pattern Matching Algorithm. Part-2

PoolTogether Bounties 🏖The Start of Something Great

Amazon WordPress blog with own domain name - Set It Up Yourself

How To Run Angular With Java API on Minikube

SIGNIFICANCE OF KUBERNETES TO IT WORLD

Getting started with Xamarin development (as of June 2018)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Third Time Dev

Third Time Dev

Game development studio with many years in AAA, mobile, and F2P. Crypto enthusiasts. Big fans of Unity.

More from Medium

3PM NFT 101 — Minting Guide

Coding a New Online Trading Card Game

Zentanode — Next Generation of Mining

What will convince Web 2.0 users to move to Web 3.0?